using KM;
using Microsoft.SqlServer.Management.Common;
using Microsoft.SqlServer.Management.Smo;
using Microsoft.Win32;
using SM.core;
using SM.sys;
using SS.core;
using SS.dir;
using System;
using System.ComponentModel;
using System.Configuration;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Threading;
using System.Windows.Forms;
using TVSBH.core;
using TVSBH.dir;
using TVSBH.doctor;
using TVSBH.func;
using TVSBH.reports;
using TVSGAS.dir;
using TVSGPP.bookGPP;
using TVSGPP.dir;
using TVSGPP.func;
using TVSGPP.reports;
using TVSGPP.search;
using TVSGPP.sys;
using TVSGPP.tools;
namespace SS
{
	public class FrmMain : Form
	{
		public static bool autoUpdate = false;
		private frmWaitting objW;
		private Regis objRegis = new Regis();
		private Func objFun = new Func();
		public string UserName = "";
		public string Permission = "";
		public string Password = "";
		public string FullName = "";
		public string strCon = "";
		public bool LogStatus = false;
		public bool updateNeed = false;
		public bool OppLeftMenu = false;
		public bool TsbRetailDoctor = false;
		public bool TsbRetail = false;
		public bool TsbOutput = false;
		public bool TsbInput = false;
		public bool TsbBill = false;
		public bool TsbBalancer = false;
		public bool TsbExpire = false;
		public bool TsbOutputDelete = false;
		private customers objC = new customers();
		private IContainer components = null;
		private MenuStrip SSmainMenu;
		private ToolStripMenuItem mnuSys;
		private ToolStripMenuItem mnuDir;
		private ToolStripMenuItem SSmnuHelp;
		private ToolStripMenuItem mnuChangpass;
		private ToolStripSeparator toolStripSeparator1;
		private ToolStripMenuItem mnuPermission;
		private ToolStripMenuItem mnuGroup;
		private ToolStripMenuItem mnuConfig;
		private ToolStripMenuItem mnuClose;
		private ToolStripMenuItem mnuGroupProduct;
		private ToolStripMenuItem mnuProduct;
		private ToolStripMenuItem mnuGroupCustomer;
		private ToolStripMenuItem mnuCustomer;
		private ToolStripSeparator toolStripSeparator4;
		private ToolStripMenuItem mnuCompany;
		private ToolStripMenuItem mnuProvider;
		private ToolStripMenuItem mnuWarehouse;
		private ToolStripMenuItem mnuUserGuide;
		private ToolStripMenuItem mnuIntro;
		private ToolStripMenuItem mnuRegis;
		private ToolStripMenuItem mnuBusiness;
		private ToolStripMenuItem mnuDonViTinh;
		private ToolStripSeparator toolStripSeparator6;
		private StatusStrip statusStrip1;
		private Label lblBottom1;
		private Label lblFullName;
		public ToolStripMenuItem sysMnuLogin;
		private ToolTip toolTip1;
		private ToolStripSeparator toolStripSeparator30;
		private ToolStripSeparator toolStripSeparator32;
		private ToolStripSeparator toolStripSeparator10;
		public SplitContainer splitContainer1;
		private ToolStripMenuItem tMnuTax;
		private ToolStripSeparator toolStripSeparator13;
		private ToolStripMenuItem mnuPoints;
		private ToolStripSeparator toolStripSeparator35;
		private ToolStripMenuItem tlSHelpFast;
		private ToolStripSeparator toolStripSeparator40;
		private ToolStripMenuItem tMnuMadeIn;
		private ToolStripMenuItem mnuDisease;
		private ToolStripMenuItem mnuTask;
		private ToolStripMenuItem mnuOutputRetail;
		private ToolStripMenuItem mnuInput;
		private ToolStripMenuItem mnuOutputTrade;
		private ToolStripSeparator toolStripSeparator12;
		private ToolStripMenuItem mnuBill;
		private ToolStripMenuItem mnuExpiryDate;
		private ToolStripMenuItem mnuUnderBalancer;
		private ToolStripSeparator toolStripSeparator2;
		private ToolStripMenuItem mnuReport;
		private ToolStripMenuItem mnuRepInput;
		private ToolStripMenuItem mnuRepOutput;
		private ToolStripMenuItem mnuLogRetail;
		private ToolStripSeparator toolStripSeparator17;
		private ToolStripMenuItem mnuDebtFirst;
		private ToolStripSeparator toolStripSeparator18;
		private ToolStripMenuItem mnuMoneyBillIn;
		private ToolStripMenuItem mnuMoneyBillOut;
		private ToolStripSeparator toolStripSeparator19;
		private ToolStripMenuItem mnuPricePublic;
		private ToolStripMenuItem mnuEqualDebt;
		private ToolStripMenuItem mnuInventory;
		private ToolStripMenuItem mnuRepRetail;
		private ToolStripMenuItem mnuBarcode;
		private ToolStripMenuItem mnuActPricePublic;
		private ToolStripMenuItem mnuTaskLog;
		private ToolStripMenuItem mnuSurplus;
		private ToolStripMenuItem mnuBook;
		private ToolStripMenuItem mnuTemHum;
		private ToolStripMenuItem mnuSideEffects;
		private ToolStripMenuItem mnuSellNotBill;
		private ToolStripMenuItem mnuTracePatients;
		private ToolStripMenuItem mnuTraceQuantity;
		private ToolStripSeparator toolStripSeparator20;
		private ToolStripMenuItem mnuRepGroupProduct;
		private ToolStripMenuItem mnurepProducts;
		private ToolStripMenuItem mnuRepCustomer;
		private ToolStripSeparator toolStripSeparator21;
		private ToolStripMenuItem mnuBookProvider;
		private ToolStripMenuItem mnuSellWithDoctor;
		private ToolStripMenuItem mnuSuppend;
		private ToolStripMenuItem mnuSearch;
		private ToolStripMenuItem mnuCusFree;
		private ToolStripMenuItem mnuCusSale;
		private ToolStripMenuItem mnuPriceList;
		private ToolStripMenuItem tsmOrder;
		private ToolStripMenuItem tsmPriceChange;
		private ToolStripMenuItem mnuStock;
		private ToolStripMenuItem mnuStorageCard;
		private ToolStripMenuItem mnuOutInBalance;
		private ToolStripMenuItem mnuBalancer;
		private ToolStripMenuItem mnuDeleteProduct;
		private ToolStripMenuItem mnuRepProductProvider;
		private ToolStripMenuItem mnuBackup;
		private ToolStripMenuItem mnuUpdate;
		private ToolStripMenuItem mnuFindProvider;
		private ToolStripMenuItem mnuDoctor;
		private ToolStripMenuItem mnuSearchDoctor;
		private ToolStrip toolStrip1;
		private ToolStripButton tsbSellWithDoctor;
		private ToolStripSeparator tsbS1;
		private ToolStripButton tsbOutputRetail;
		private ToolStripSeparator tsbS2;
		private ToolStripButton tsbOutputTrade;
		private ToolStripSeparator tsbS5;
		private ToolStripButton tsbInputWarehouse;
		private ToolStripSeparator tsbS6;
		private ToolStripButton tsbBill;
		private ToolStripSeparator tsbS7;
		private ToolStripButton tsbBalance;
		private ToolStripSeparator tsbS8;
		private ToolStripButton tsbExpire;
		private Label lblBar;
		private Label lblRighButton;
		private ToolStripLabel toolStripLabel1;
		private Label label1;
		private ToolStripSeparator toolStripSeparator3;
		private ToolStripButton tsbOutputDelete;
		private ToolStripMenuItem mnuStoreForward;
		private ToolStripMenuItem mnuIngredient;
		private ToolStripMenuItem mnuRepOutputDetailt;
		private ToolStripMenuItem mnuPrescriptions;
		private ToolStripMenuItem mnuRepOutInBalancer;
		private ToolStripMenuItem mnuPrescripTion;
		private ToolStripSeparator toolStripSeparator7;
		private ToolStripMenuItem mnuBisImport;
		private ToolStripMenuItem mnuReset;
		private ToolStripMenuItem mnuQuocte;
		private ToolStripMenuItem mnuOption;
		private ToolStripMenuItem mnuMedUsage;
		private ToolStripMenuItem mnuTmpPrescription;
		private ToolStripMenuItem mnuBookClear;
		private ToolStripMenuItem mnuBookDate;
		private ToolStripMenuItem mnuBookWaitingProcess;
		private ToolStripMenuItem mnuBookInput;
		private ToolStripMenuItem mnuBookSaleByBill;
		private ToolStripMenuItem mnuListBillOutput;
		private ToolStripSeparator toolStripSeparator5;
		private ToolStripMenuItem mnuTicketBillInput;
		private ToolStripMenuItem mnuTicketBillOutput;
		private ToolStripSeparator toolStripSeparator9;
		private ToolStripMenuItem mnuBookUseFocusMind;
		private ToolStripMenuItem mnuBookInOutFocusMind;
		private ToolStripMenuItem mnuBookPlanFocusMind;
		private ToolStripMenuItem mnuPrescriptionsDetail;
		private ToolStripMenuItem mnuPlanMake;
		private ToolStripMenuItem mnuIntraction;
		private ToolStripSeparator toolStripSeparator11;
		private ToolStripMenuItem mnuBookProductDir;
		private ToolStripMenuItem mnuBookProductDirByGroup;
		private void SetPermission()
		{
			this.Permission = this.objFun.GetSysPer(this.UserName, this.Password);
			if (this.Permission.Contains("13"))
			{
				this.mnuPermission.Enabled = true;
			}
			else
			{
				this.mnuPermission.Enabled = false;
			}
			if (this.Permission.Contains("14"))
			{
				this.mnuGroup.Enabled = true;
			}
			else
			{
				this.mnuGroup.Enabled = false;
			}
			if (this.Permission.Contains("15"))
			{
				this.mnuBusiness.Enabled = true;
			}
			else
			{
				this.mnuBusiness.Enabled = false;
			}
			if (this.Permission.Contains("16"))
			{
				this.mnuConfig.Enabled = true;
			}
			else
			{
				this.mnuConfig.Enabled = false;
			}
			if (this.Permission.Contains("17"))
			{
				this.mnuPoints.Enabled = true;
			}
			else
			{
				this.mnuPoints.Enabled = false;
			}
			if (this.Permission.Contains("18"))
			{
				this.mnuGroupProduct.Enabled = true;
			}
			else
			{
				this.mnuGroupProduct.Enabled = false;
			}
			if (this.Permission.Contains("19"))
			{
				this.mnuProduct.Enabled = true;
			}
			else
			{
				this.mnuProduct.Enabled = false;
			}
			if (this.Permission.Contains("20"))
			{
				this.mnuGroupCustomer.Enabled = true;
			}
			else
			{
				this.mnuGroupCustomer.Enabled = false;
			}
			if (this.Permission.Contains("21"))
			{
				this.mnuCustomer.Enabled = true;
			}
			else
			{
				this.mnuCustomer.Enabled = false;
			}
			if (this.Permission.Contains("22"))
			{
				this.mnuCompany.Enabled = true;
			}
			else
			{
				this.mnuCompany.Enabled = false;
			}
			if (this.Permission.Contains("23"))
			{
				this.mnuProvider.Enabled = true;
			}
			else
			{
				this.mnuProvider.Enabled = false;
			}
			if (this.Permission.Contains("24"))
			{
				this.mnuWarehouse.Enabled = true;
			}
			else
			{
				this.mnuWarehouse.Enabled = false;
			}
			if (this.Permission.Contains("25"))
			{
				this.mnuBarcode.Enabled = true;
			}
			else
			{
				this.mnuBarcode.Enabled = false;
			}
			if (this.Permission.Contains("70"))
			{
				this.mnuActPricePublic.Enabled = true;
			}
			else
			{
				this.mnuActPricePublic.Enabled = false;
			}
			if (this.Permission.Contains("26"))
			{
				this.mnuDonViTinh.Enabled = true;
			}
			else
			{
				this.mnuDonViTinh.Enabled = false;
			}
			if (this.Permission.Contains("27"))
			{
				this.tMnuTax.Enabled = true;
			}
			else
			{
				this.tMnuTax.Enabled = false;
			}
			if (this.Permission.Contains("28"))
			{
				this.mnuDisease.Enabled = true;
			}
			else
			{
				this.mnuDisease.Enabled = false;
			}
			if (this.Permission.Contains("29"))
			{
				this.mnuOutputRetail.Enabled = true;
				this.tsbOutputRetail.Enabled = true;
			}
			else
			{
				this.mnuOutputRetail.Enabled = false;
				this.tsbOutputRetail.Enabled = false;
			}
			if (this.Permission.Contains("30"))
			{
				this.mnuOutputTrade.Enabled = true;
				this.tsbOutputTrade.Enabled = true;
			}
			else
			{
				this.mnuOutputTrade.Enabled = false;
				this.tsbOutputTrade.Enabled = false;
			}
			if (this.Permission.Contains("31"))
			{
				this.mnuInput.Enabled = true;
				this.tsbInputWarehouse.Enabled = true;
			}
			else
			{
				this.mnuInput.Enabled = false;
				this.tsbInputWarehouse.Enabled = false;
			}
			if (this.Permission.Contains("32"))
			{
				this.mnuBill.Enabled = true;
				this.tsbBill.Enabled = true;
			}
			else
			{
				this.mnuBill.Enabled = false;
				this.tsbBill.Enabled = false;
			}
			if (this.Permission.Contains("33"))
			{
				this.mnuBalancer.Enabled = true;
				this.tsbBalance.Enabled = true;
			}
			else
			{
				this.mnuBalancer.Enabled = false;
				this.tsbBalance.Enabled = false;
			}
			if (this.Permission.Contains("34"))
			{
				this.mnuExpiryDate.Enabled = true;
				this.tsbExpire.Enabled = true;
			}
			else
			{
				this.mnuExpiryDate.Enabled = false;
				this.tsbExpire.Enabled = false;
			}
			if (this.Permission.Contains("35"))
			{
				this.mnuUnderBalancer.Enabled = true;
			}
			else
			{
				this.mnuUnderBalancer.Enabled = false;
			}
			if (this.Permission.Contains("37"))
			{
				this.mnuStorageCard.Enabled = true;
			}
			else
			{
				this.mnuStorageCard.Enabled = false;
			}
			if (this.Permission.Contains("40"))
			{
				this.mnuEqualDebt.Enabled = true;
			}
			else
			{
				this.mnuEqualDebt.Enabled = false;
			}
			if (this.Permission.Contains("41"))
			{
				this.mnuDebtFirst.Enabled = true;
			}
			else
			{
				this.mnuDebtFirst.Enabled = false;
			}
			if (this.Permission.Contains("42"))
			{
				this.mnuMoneyBillIn.Enabled = true;
			}
			else
			{
				this.mnuMoneyBillIn.Enabled = false;
			}
			if (this.Permission.Contains("43"))
			{
				this.mnuMoneyBillOut.Enabled = true;
			}
			else
			{
				this.mnuMoneyBillOut.Enabled = false;
			}
			if (this.Permission.Contains("44"))
			{
				this.mnuRepInput.Enabled = true;
			}
			else
			{
				this.mnuRepInput.Enabled = false;
			}
			if (this.Permission.Contains("45"))
			{
				this.mnuRepOutput.Enabled = true;
			}
			else
			{
				this.mnuRepOutput.Enabled = false;
			}
			if (this.Permission.Contains("46"))
			{
				this.mnuLogRetail.Enabled = true;
			}
			else
			{
				this.mnuLogRetail.Enabled = false;
			}
			if (this.Permission.Contains("47"))
			{
				this.mnuRepRetail.Enabled = true;
			}
			else
			{
				this.mnuRepRetail.Enabled = false;
			}
			if (this.Permission.Contains("48"))
			{
				this.mnuPricePublic.Enabled = true;
			}
			else
			{
				this.mnuPricePublic.Enabled = false;
			}
			if (this.Permission.Contains("49"))
			{
				this.mnuInventory.Enabled = true;
			}
			else
			{
				this.mnuInventory.Enabled = false;
			}
			if (this.Permission.Contains("50"))
			{
				this.tMnuMadeIn.Enabled = true;
			}
			else
			{
				this.tMnuMadeIn.Enabled = false;
			}
			if (this.Permission.Contains("52"))
			{
				this.mnuRegis.Enabled = true;
			}
			else
			{
				this.mnuRegis.Enabled = false;
			}
			if (this.Permission.Contains("56"))
			{
				this.mnuTaskLog.Enabled = true;
			}
			else
			{
				this.mnuTaskLog.Enabled = false;
			}
			if (this.Permission.Contains("57"))
			{
				this.tsbSellWithDoctor.Enabled = true;
			}
			else
			{
				this.tsbSellWithDoctor.Enabled = false;
			}
			if (this.Permission.Contains("58"))
			{
				this.tsmOrder.Enabled = true;
			}
			else
			{
				this.tsmOrder.Enabled = false;
			}
			if (this.Permission.Contains("59"))
			{
				this.mnuTemHum.Enabled = true;
			}
			else
			{
				this.mnuTemHum.Enabled = false;
			}
			if (this.Permission.Contains("60"))
			{
				this.mnuSideEffects.Enabled = true;
			}
			else
			{
				this.mnuSideEffects.Enabled = false;
			}
			if (this.Permission.Contains("61"))
			{
				this.mnuSuppend.Enabled = true;
			}
			else
			{
				this.mnuSuppend.Enabled = false;
			}
			if (this.Permission.Contains("62"))
			{
				this.mnuSellNotBill.Enabled = true;
			}
			else
			{
				this.mnuSellNotBill.Enabled = false;
			}
			if (this.Permission.Contains("63"))
			{
				this.mnuTraceQuantity.Enabled = true;
			}
			else
			{
				this.mnuTraceQuantity.Enabled = false;
			}
			if (this.Permission.Contains("64"))
			{
				this.mnuTracePatients.Enabled = true;
			}
			else
			{
				this.mnuTracePatients.Enabled = false;
			}
			if (this.Permission.Contains("65"))
			{
				this.mnuBookProvider.Enabled = true;
			}
			else
			{
				this.mnuBookProvider.Enabled = false;
			}
			if (this.Permission.Contains("66"))
			{
				this.mnuRepGroupProduct.Enabled = true;
			}
			else
			{
				this.mnuRepGroupProduct.Enabled = false;
			}
			if (this.Permission.Contains("67"))
			{
				this.mnurepProducts.Enabled = true;
			}
			else
			{
				this.mnurepProducts.Enabled = false;
			}
			if (this.Permission.Contains("68"))
			{
				this.mnuBookProvider.Enabled = true;
			}
			else
			{
				this.mnuBookProvider.Enabled = false;
			}
			if (this.Permission.Contains("69"))
			{
				this.mnuRepCustomer.Enabled = true;
			}
			else
			{
				this.mnuRepCustomer.Enabled = false;
			}
			if (this.Permission.Contains("71"))
			{
				this.mnuSurplus.Enabled = true;
			}
			else
			{
				this.mnuSurplus.Enabled = false;
			}
			if (this.Permission.Contains("72"))
			{
				this.mnuPriceList.Enabled = true;
			}
			else
			{
				this.mnuPriceList.Enabled = false;
			}
			if (this.Permission.Contains("73"))
			{
				this.mnuBackup.Enabled = true;
			}
			else
			{
				this.mnuBackup.Enabled = false;
			}
			if (this.Permission.Contains("74"))
			{
				this.mnuRepProductProvider.Enabled = true;
			}
			else
			{
				this.mnuRepProductProvider.Enabled = false;
			}
			if (this.Permission.Contains("75"))
			{
				this.tsmPriceChange.Enabled = true;
			}
			else
			{
				this.tsmPriceChange.Enabled = false;
			}
			if (this.Permission.Contains("76"))
			{
				this.mnuDoctor.Enabled = true;
			}
			else
			{
				this.mnuDoctor.Enabled = false;
			}
			if (this.Permission.Contains("77"))
			{
				this.mnuDeleteProduct.Enabled = true;
				this.tsbOutputDelete.Enabled = true;
			}
			else
			{
				this.mnuDeleteProduct.Enabled = false;
				this.tsbOutputDelete.Enabled = false;
			}
			if (this.Permission.Contains("78"))
			{
				this.mnuIngredient.Enabled = true;
			}
			else
			{
				this.mnuIngredient.Enabled = false;
			}
			if (this.Permission.Contains("79"))
			{
				this.mnuBisImport.Enabled = true;
			}
			else
			{
				this.mnuBisImport.Enabled = false;
			}
			if (this.Permission.Contains("80"))
			{
				this.mnuPrescripTion.Enabled = true;
			}
			else
			{
				this.mnuPrescripTion.Enabled = false;
			}
			if (this.Permission.Contains("81"))
			{
				this.mnuStoreForward.Enabled = true;
			}
			else
			{
				this.mnuStoreForward.Enabled = false;
			}
			if (this.Permission.Contains("82"))
			{
				this.mnuDeleteProduct.Enabled = true;
			}
			else
			{
				this.mnuDeleteProduct.Enabled = false;
			}
			if (this.Permission.Contains("83"))
			{
				this.mnuOutInBalance.Enabled = true;
			}
			else
			{
				this.mnuOutInBalance.Enabled = false;
			}
			if (this.Permission.Contains("84"))
			{
				this.mnuRepOutputDetailt.Enabled = true;
			}
			else
			{
				this.mnuRepOutputDetailt.Enabled = false;
			}
			if (this.Permission.Contains("85"))
			{
				this.mnuPrescriptions.Enabled = true;
			}
			else
			{
				this.mnuPrescriptions.Enabled = false;
			}
			if (this.Permission.Contains("86"))
			{
				this.mnuRepOutInBalancer.Enabled = true;
			}
			else
			{
				this.mnuRepOutInBalancer.Enabled = false;
			}
			if (this.Permission.Contains("87"))
			{
				this.mnuSellWithDoctor.Enabled = true;
			}
			else
			{
				this.mnuSellWithDoctor.Enabled = false;
			}
			if (this.Permission.Contains("88"))
			{
				this.mnuMedUsage.Enabled = true;
			}
			else
			{
				this.mnuMedUsage.Enabled = false;
			}
			if (this.Permission.Contains("89"))
			{
				this.mnuTmpPrescription.Enabled = true;
			}
			else
			{
				this.mnuTmpPrescription.Enabled = false;
			}
			if (this.Permission.Contains("91"))
			{
				this.mnuBookClear.Enabled = true;
			}
			else
			{
				this.mnuBookClear.Enabled = false;
			}
			if (this.Permission.Contains("92"))
			{
				this.mnuBookDate.Enabled = true;
			}
			else
			{
				this.mnuBookDate.Enabled = false;
			}
			if (this.Permission.Contains("93"))
			{
				this.mnuBookWaitingProcess.Enabled = true;
			}
			else
			{
				this.mnuBookWaitingProcess.Enabled = false;
			}
			if (this.Permission.Contains("94"))
			{
				this.mnuBookInput.Enabled = true;
			}
			else
			{
				this.mnuBookInput.Enabled = false;
			}
			if (this.Permission.Contains("95"))
			{
				this.mnuBookSaleByBill.Enabled = true;
			}
			else
			{
				this.mnuBookSaleByBill.Enabled = false;
			}
			if (this.Permission.Contains("96"))
			{
				this.mnuBookInOutFocusMind.Enabled = true;
			}
			else
			{
				this.mnuBookInOutFocusMind.Enabled = false;
			}
			if (this.Permission.Contains("97"))
			{
				this.mnuBookUseFocusMind.Enabled = true;
			}
			else
			{
				this.mnuBookUseFocusMind.Enabled = false;
			}
			if (this.Permission.Contains("98"))
			{
				this.mnuPrescriptionsDetail.Enabled = true;
			}
			else
			{
				this.mnuPrescriptionsDetail.Enabled = false;
			}
			if (this.Permission.Contains("99"))
			{
				this.mnuListBillOutput.Enabled = true;
			}
			else
			{
				this.mnuListBillOutput.Enabled = false;
			}
			if (this.Permission.Contains("100"))
			{
				this.mnuTicketBillInput.Enabled = true;
			}
			else
			{
				this.mnuTicketBillInput.Enabled = false;
			}
		}
		public FrmMain()
		{
			this.InitializeComponent();
			this.strCon = this.objFun.strConnectionString;
		}
		private void showWatting()
		{
			this.objW = new frmWaitting();
			this.objW.ShowDialog();
			Thread.Sleep(40);
		}
		private void mnuClose_Click(object sender, EventArgs e)
		{
			Application.Exit();
		}
		private void tSClose_Click(object sender, EventArgs e)
		{
			if (MessageBox.Show("Bạn có chắc chắn muốn đóng ứng dụng không?", "SS-Quản lý bán hàng", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
			{
				Application.Exit();
			}
		}
		private void mnuConfig_Click(object sender, EventArgs e)
		{
			new FrmCongif
			{
				isFirst = false,
				userName = this.UserName
			}.ShowDialog();
		}
		private void mnuGroupProduct_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			FrmupdtGproduct frmupdtGproduct = new FrmupdtGproduct();
			frmupdtGproduct.TopLevel = false;
			frmupdtGproduct.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmupdtGproduct);
			frmupdtGproduct.Show();
		}
		private void mnuProduct_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			FrmupdtProduct frmupdtProduct = new FrmupdtProduct();
			frmupdtProduct.TopLevel = false;
			frmupdtProduct.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmupdtProduct);
			frmupdtProduct.Show();
		}
		private void mnuGroupCustomer_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			FrmudtGroupCustomer frmudtGroupCustomer = new FrmudtGroupCustomer();
			frmudtGroupCustomer.TopLevel = false;
			frmudtGroupCustomer.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmudtGroupCustomer);
			frmudtGroupCustomer.Show();
		}
		private void mnuCustomer_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			FrmupdtCustomer frmupdtCustomer = new FrmupdtCustomer();
			frmupdtCustomer.TopLevel = false;
			frmupdtCustomer.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmupdtCustomer);
			frmupdtCustomer.Show();
		}
		private void mnuCompany_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			FrmupdtManufacture frmupdtManufacture = new FrmupdtManufacture();
			frmupdtManufacture.TopLevel = false;
			frmupdtManufacture.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmupdtManufacture);
			frmupdtManufacture.Show();
		}
		private void mnuProvider_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			FrmupdtProvider frmupdtProvider = new FrmupdtProvider();
			frmupdtProvider.TopLevel = false;
			frmupdtProvider.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmupdtProvider);
			frmupdtProvider.Show();
		}
		private void mnuWarehouse_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			FrmupdtWareHouse frmupdtWareHouse = new FrmupdtWareHouse();
			frmupdtWareHouse.TopLevel = false;
			frmupdtWareHouse.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmupdtWareHouse);
			frmupdtWareHouse.Show();
		}
		private void mnuPermission_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmAccount frmAccount = new frmAccount();
			frmAccount.TopLevel = false;
			frmAccount.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmAccount);
			frmAccount.Show();
		}
		private void mnuGroup_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmGroup frmGroup = new frmGroup();
			frmGroup.TopLevel = false;
			frmGroup.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmGroup);
			frmGroup.Show();
		}
		private void mnuLogin_Click(object sender, EventArgs e)
		{
			new frmLogin
			{
				MdiParent = this
			}.Show();
		}
		private bool CheckForm(string FormName)
		{
			bool result = false;
			Form[] mdiChildren = base.MdiChildren;
			for (int i = 0; i < mdiChildren.Length; i++)
			{
				Form form = mdiChildren[i];
				if (FormName == form.Name.ToString())
				{
					result = true;
					break;
				}
			}
			return result;
		}
		private void FormActive(string FormName)
		{
			Form[] mdiChildren = base.MdiChildren;
			for (int i = 0; i < mdiChildren.Length; i++)
			{
				Form form = mdiChildren[i];
				if (FormName == form.Name.ToString())
				{
					form.Activate();
					break;
				}
			}
		}
		private void tSbExit_Click(object sender, EventArgs e)
		{
			if (MessageBox.Show("Bạn có chắc chắn muốn thoát khỏi ứng dụng không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
			{
				Application.Exit();
			}
		}
		private void FrmSSMain_Load(object sender, EventArgs e)
		{
			try
			{
				RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("Software\\TVSGPP", true);
				this.OppLeftMenu = bool.Parse(registryKey.GetValue("OppLeftMenu").ToString());
				if (!this.OppLeftMenu)
				{
					this.splitContainer1.Panel1Collapsed = true;
				}
				else
				{
					this.TsbRetailDoctor = bool.Parse(registryKey.GetValue("TsbRetailDoctor").ToString());
					if (this.TsbRetailDoctor)
					{
						this.tsbSellWithDoctor.Visible = true;
						this.tsbS1.Visible = true;
					}
					else
					{
						this.tsbSellWithDoctor.Visible = false;
						this.tsbS1.Visible = false;
					}
					this.TsbRetail = bool.Parse(registryKey.GetValue("TsbRetail").ToString());
					if (this.TsbRetail)
					{
						this.tsbOutputRetail.Visible = true;
						this.tsbS2.Visible = true;
					}
					else
					{
						this.tsbOutputRetail.Visible = false;
						this.tsbS2.Visible = false;
					}
					this.TsbOutput = bool.Parse(registryKey.GetValue("TsbOutput").ToString());
					if (this.TsbOutput)
					{
						this.tsbOutputTrade.Visible = true;
						this.tsbS5.Visible = true;
					}
					else
					{
						this.tsbOutputTrade.Visible = false;
						this.tsbS5.Visible = false;
					}
					this.TsbInput = bool.Parse(registryKey.GetValue("TsbInput").ToString());
					if (this.TsbInput)
					{
						this.tsbInputWarehouse.Visible = true;
						this.tsbS6.Visible = true;
					}
					else
					{
						this.tsbInputWarehouse.Visible = false;
						this.tsbS6.Visible = false;
					}
					this.TsbBill = bool.Parse(registryKey.GetValue("TsbBill").ToString());
					if (this.TsbBill)
					{
						this.tsbBill.Visible = true;
						this.tsbS7.Visible = true;
					}
					else
					{
						this.tsbBill.Visible = false;
						this.tsbS7.Visible = false;
					}
					this.TsbBalancer = bool.Parse(registryKey.GetValue("TsbBalancer").ToString());
					if (this.TsbBalancer)
					{
						this.tsbBalance.Visible = true;
						this.tsbS8.Visible = true;
					}
					else
					{
						this.tsbBalance.Visible = false;
						this.tsbS8.Visible = false;
					}
					this.TsbExpire = bool.Parse(registryKey.GetValue("TsbExpire").ToString());
					if (this.TsbExpire)
					{
						this.tsbExpire.Visible = true;
						this.toolStripSeparator3.Visible = true;
					}
					else
					{
						this.tsbExpire.Visible = false;
						this.toolStripSeparator3.Visible = false;
					}
					this.TsbOutputDelete = bool.Parse(registryKey.GetValue("TsbOutputDelete").ToString());
					if (this.TsbOutputDelete)
					{
						this.tsbOutputDelete.Visible = true;
					}
					else
					{
						this.tsbOutputDelete.Visible = false;
					}
				}
				registryKey.Close();
			}
			catch
			{
			}
			this.lblBottom1.Text = "..:  " + this.objFun.getValue("TabCompany", "ComName", "ComID", "COM01");
			this.Login();
			products products = new products();
			if (this.objFun.checkWarningDate())
			{
				int num = products.countProductWarningDate();
				if (num > 0)
				{
					new frmExpiryDate
					{
						FormBorderStyle = FormBorderStyle.FixedToolWindow,
						Size = new Size(900, 600),
						MinimumSize = new Size(900, 600),
						MaximumSize = new Size(900, 600),
						userName = this.UserName,
						fullName = this.FullName,
						WindowState = FormWindowState.Normal
					}.ShowDialog();
				}
			}
			if (this.objFun.checkWarningNumber())
			{
				int num = products.countProductWarningNumber(this.objFun.getWarehouse(this.UserName));
				if (num > 0)
				{
					new frmUnderBalancer
					{
						FormBorderStyle = FormBorderStyle.FixedToolWindow,
						Size = new Size(900, 600),
						MinimumSize = new Size(900, 600),
						MaximumSize = new Size(900, 600),
						userName = this.UserName,
						fullName = this.FullName,
						WindowState = FormWindowState.Normal
					}.ShowDialog();
				}
			}
			if (this.UserName.ToUpper() != "ADMIN")
			{
				this.mnuReset.Visible = false;
			}
			else
			{
				this.mnuReset.Visible = true;
			}
		}
		private void Login()
		{
			if (this.LogStatus)
			{
				this.checkAfterLogin();
			}
		}
		private void checkAfterLogin()
		{
			this.lblFullName.Text = string.Concat(new string[]
			{
				"PHIÊN LÀM VIỆC : ",
				this.FullName.ToUpper(),
				"  [  ",
				DateTime.Now.Day.ToString(),
				"/",
				DateTime.Now.Month.ToString(),
				"/",
				DateTime.Now.Year.ToString(),
				" ",
				DateTime.Now.Hour.ToString(),
				":",
				DateTime.Now.Minute.ToString(),
				":",
				DateTime.Now.Second.ToString(),
				"  ]"
			});
			this.SetPermission();
		}
		private void sysMnuLogin_Click(object sender, EventArgs e)
		{
			try
			{
				this.clearControl(this.splitContainer1, "objF1");
				this.LogStatus = false;
				this.UserName = "";
				this.FullName = "";
				frmLogin frmLogin = new frmLogin();
				frmLogin.ShowDialog();
				this.UserName = frmLogin.UserName;
				this.FullName = frmLogin.FullName;
				this.Password = frmLogin.Password;
				this.LogStatus = frmLogin.OK;
				if (this.LogStatus)
				{
					this.checkAfterLogin();
				}
				else
				{
					this.FullName = "Chưa xác định";
				}
				if (this.UserName.ToUpper() != "ADMIN")
				{
					this.mnuReset.Visible = false;
				}
				else
				{
					this.mnuReset.Visible = true;
				}
			}
			catch
			{
			}
		}
		private void mnuIntro_Click(object sender, EventArgs e)
		{
			frmIntro frmIntro = new frmIntro();
			frmIntro.ShowDialog();
		}
		private void mnuManagerWarehouse_Click(object sender, EventArgs e)
		{
		}
		private void mnuRegis_Click(object sender, EventArgs e)
		{
			try
			{
				FrmRegister frmRegister = new FrmRegister();
				frmRegister.ShowDialog();
			}
			catch
			{
			}
		}
		private void mnuBusiness_Click(object sender, EventArgs e)
		{
			FrmRootCompany frmRootCompany = new FrmRootCompany();
			frmRootCompany.ShowDialog();
		}
		private void mnuChangpass_Click(object sender, EventArgs e)
		{
			new frmChangePass
			{
				StrUsername = this.UserName
			}.ShowDialog();
		}
		private void mnuDonViTinh_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			FrmupdtUnitproduct frmupdtUnitproduct = new FrmupdtUnitproduct();
			frmupdtUnitproduct.TopLevel = false;
			frmupdtUnitproduct.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmupdtUnitproduct);
			frmupdtUnitproduct.Show();
		}
		private void mnuUserGuide_Click(object sender, EventArgs e)
		{
			try
			{
				Process.Start("TVQS.exe");
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}
		public bool CheckAttachDatabase()
		{
			bool result = true;
			string a = ConfigurationManager.AppSettings["Attach"].ToString();
			if (a == "1")
			{
				result = false;
			}
			return result;
		}
		private void tsBtnExit_Click(object sender, EventArgs e)
		{
			if (MessageBox.Show("Bạn có chắc chắn muốn thoát khỏi chương trình không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
			{
				Application.Exit();
			}
		}
		private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			Process.Start("www.trungvietsoftware.com");
		}
		private void mnuReportForwardProducts_Click(object sender, EventArgs e)
		{
			MessageBox.Show("Tính năng hiện tại đang được xây dựng!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
		}
		private bool activeControl(SplitContainer ctl, string objName)
		{
			bool result;
			for (int i = 0; i < ctl.Panel2.Controls.Count; i++)
			{
				if (ctl.Panel2.Controls[i].Name.ToString().ToUpper() == objName.ToUpper())
				{
					ctl.Panel2.Controls[i].Show();
					result = true;
					return result;
				}
			}
			result = false;
			return result;
		}
		private void clearControl(SplitContainer ctl, string objName)
		{
			for (int i = 0; i < ctl.Panel2.Controls.Count; i++)
			{
				if (ctl.Panel2.Controls[i].Name.ToString().ToUpper() != objName.ToUpper())
				{
					ctl.Panel2.Controls.RemoveAt(i);
					break;
				}
			}
		}
		private void tMnuTax_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmTax frmTax = new frmTax();
			frmTax.TopLevel = false;
			frmTax.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmTax);
			frmTax.Show();
		}
		private void FrmMain_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				this.splitContainer1.Panel2.Controls.Clear();
			}
		}
		private void splitContainer1_Panel2_ControlAdded(object sender, ControlEventArgs e)
		{
			Control.ControlCollection controls = this.splitContainer1.Panel2.Controls;
			string text = "";
			foreach (Control control in controls)
			{
				text = control.Text;
			}
			if (text != "")
			{
				this.Text = "TVS - GPP PHẦN MỀM QUẢN LÝ NHÀ THUỐC - " + text.ToUpper().Replace(".:", "");
			}
			else
			{
				this.Text = "TVS - GPP PHẦN MỀM QUẢN LÝ NHÀ THUỐC";
			}
		}
		private void splitContainer1_Panel2_ControlRemoved(object sender, ControlEventArgs e)
		{
			Control.ControlCollection controls = this.splitContainer1.Panel2.Controls;
			string text = "";
			foreach (Control control in controls)
			{
				text = control.Text;
			}
			if (text != "")
			{
				this.Text = "TVS - GPP PHẦN MỀM QUẢN LÝ NHÀ THUỐC - " + text.ToUpper().Replace(".:", "");
			}
			else
			{
				this.Text = "TVS - GPP PHẦN MỀM QUẢN LÝ NHÀ THUỐC";
			}
		}
		private void mnuPoints_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmPoint frmPoint = new frmPoint();
			frmPoint.TopLevel = false;
			frmPoint.Dock = DockStyle.Fill;
			frmPoint.FullName = this.FullName;
			this.splitContainer1.Panel2.Controls.Add(frmPoint);
			frmPoint.Show();
		}
		private void tlSHelpFast_Click(object sender, EventArgs e)
		{
			try
			{
				Process.Start("TVSGPP.doc");
			}
			catch
			{
			}
		}
		private void tsBExit_Click_1(object sender, EventArgs e)
		{
			this.mnuClose.PerformClick();
		}
		private void tMnuMadeIn_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmNational frmNational = new frmNational();
			frmNational.TopLevel = false;
			frmNational.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmNational);
			frmNational.Show();
		}
		private void mnuDisease_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmDesease frmDesease = new frmDesease();
			frmDesease.TopLevel = false;
			frmDesease.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmDesease);
			frmDesease.Show();
		}
		private void mnuOutput_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmOutputRetail frmOutputRetail = new frmOutputRetail();
			frmOutputRetail.TopLevel = false;
			frmOutputRetail.Dock = DockStyle.Fill;
			frmOutputRetail.userName = this.UserName;
			frmOutputRetail.fullName = this.FullName;
			this.splitContainer1.Panel2.Controls.Add(frmOutputRetail);
			frmOutputRetail.Show();
		}
		private void mnuInput_Click(object sender, EventArgs e)
		{
			wareHouse wareHouse = new wareHouse();
			if (wareHouse.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmInput frmInput = new frmInput();
				frmInput.TopLevel = false;
				frmInput.Dock = DockStyle.Fill;
				frmInput.userName = this.UserName;
				frmInput.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmInput);
				frmInput.Show();
			}
			else
			{
				MessageBox.Show("Không có kho hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuOutputTrade_Click(object sender, EventArgs e)
		{
			wareHouse wareHouse = new wareHouse();
			if (wareHouse.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmOutput frmOutput = new frmOutput();
				frmOutput.TopLevel = false;
				frmOutput.Dock = DockStyle.Fill;
				frmOutput.userName = this.UserName;
				frmOutput.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmOutput);
				frmOutput.Show();
			}
			else
			{
				MessageBox.Show("Không có kho hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void tsbInputWarehouse_Click(object sender, EventArgs e)
		{
			this.mnuInput.PerformClick();
		}
		private void tsbOutputRetail_Click(object sender, EventArgs e)
		{
			this.mnuOutputRetail.PerformClick();
		}
		private void tsbOutputTrade_Click(object sender, EventArgs e)
		{
			try
			{
				this.mnuOutputTrade.PerformClick();
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}
		private void mnuBill_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmBill frmBill = new frmBill();
			frmBill.TopLevel = false;
			frmBill.Dock = DockStyle.Fill;
			frmBill.userName = this.UserName;
			frmBill.fullName = this.FullName;
			this.splitContainer1.Panel2.Controls.Add(frmBill);
			frmBill.Show();
		}
		private void tsbBill_Click(object sender, EventArgs e)
		{
			this.mnuBill.PerformClick();
		}
		private void mnuBalancer_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmBalancer frmBalancer = new frmBalancer();
				frmBalancer.TopLevel = false;
				frmBalancer.Dock = DockStyle.Fill;
				frmBalancer.userName = this.UserName;
				frmBalancer.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmBalancer);
				frmBalancer.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void tsbBalance_Click(object sender, EventArgs e)
		{
			this.mnuBalancer.PerformClick();
		}
		private void mnuExpiryDate_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmExpiryDate frmExpiryDate = new frmExpiryDate();
				frmExpiryDate.TopLevel = false;
				frmExpiryDate.Dock = DockStyle.Fill;
				frmExpiryDate.userName = this.UserName;
				frmExpiryDate.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmExpiryDate);
				frmExpiryDate.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void tsbExpire_Click(object sender, EventArgs e)
		{
			this.mnuExpiryDate.PerformClick();
		}
		private void mnuUnderBalancer_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmUnderBalancer frmUnderBalancer = new frmUnderBalancer();
				frmUnderBalancer.TopLevel = false;
				frmUnderBalancer.Dock = DockStyle.Fill;
				frmUnderBalancer.userName = this.UserName;
				frmUnderBalancer.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmUnderBalancer);
				frmUnderBalancer.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuStorageCard_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmStorageCard frmStorageCard = new frmStorageCard();
				frmStorageCard.TopLevel = false;
				frmStorageCard.Dock = DockStyle.Fill;
				frmStorageCard.userName = this.UserName;
				frmStorageCard.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmStorageCard);
				frmStorageCard.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuRepInput_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmRepInput frmRepInput = new frmRepInput();
			frmRepInput.TopLevel = false;
			frmRepInput.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmRepInput);
			frmRepInput.Show();
		}
		private void mnuRepOutput_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmRepOutput frmRepOutput = new frmRepOutput();
			frmRepOutput.TopLevel = false;
			frmRepOutput.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmRepOutput);
			frmRepOutput.Show();
		}
		private void mnuDebtIn_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmDebtNeedIn frmDebtNeedIn = new frmDebtNeedIn();
			frmDebtNeedIn.TopLevel = false;
			frmDebtNeedIn.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmDebtNeedIn);
			frmDebtNeedIn.Show();
		}
		private void mnuDebtOut_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmDebtNeedOut frmDebtNeedOut = new frmDebtNeedOut();
			frmDebtNeedOut.TopLevel = false;
			frmDebtNeedOut.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmDebtNeedOut);
			frmDebtNeedOut.Show();
		}
		private void mnuEqualDebt_Click(object sender, EventArgs e)
		{
			Partner partner = new Partner();
			if (partner.getCountToEqualDebt() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmEqualDebt frmEqualDebt = new frmEqualDebt();
				frmEqualDebt.TopLevel = false;
				frmEqualDebt.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmEqualDebt);
				frmEqualDebt.Show();
			}
			else
			{
				MessageBox.Show("Không có đối tượng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuDebtFirst_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmDebtFirstBalancer frmDebtFirstBalancer = new frmDebtFirstBalancer();
			frmDebtFirstBalancer.TopLevel = false;
			frmDebtFirstBalancer.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmDebtFirstBalancer);
			frmDebtFirstBalancer.Show();
		}
		private void mnuLogRetail_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmLogOutputRetail frmLogOutputRetail = new frmLogOutputRetail();
			frmLogOutputRetail.TopLevel = false;
			frmLogOutputRetail.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmLogOutputRetail);
			frmLogOutputRetail.Show();
		}
		private void mnuInventory_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmInventory frmInventory = new frmInventory();
				frmInventory.TopLevel = false;
				frmInventory.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmInventory);
				frmInventory.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuPricePublic_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmPublishPrice frmPublishPrice = new frmPublishPrice();
				frmPublishPrice.TopLevel = false;
				frmPublishPrice.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmPublishPrice);
				frmPublishPrice.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuMoneyBillIn_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmInOutMoneyBill frmInOutMoneyBill = new frmInOutMoneyBill();
			frmInOutMoneyBill.TopLevel = false;
			frmInOutMoneyBill.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmInOutMoneyBill);
			frmInOutMoneyBill.Type = "IN";
			frmInOutMoneyBill.Text = "PHIẾU THU - THU TIỀN MẶT";
			frmInOutMoneyBill.userName = this.UserName;
			frmInOutMoneyBill.fullName = this.FullName;
			frmInOutMoneyBill.Show();
			this.Text = "TVS - GPP PHẦN MỀM QUẢN LÝ NHÀ THUỐC - PHIẾU THU - THU TIỀN MẶT";
		}
		private void mnuMoneyBillOut_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmInOutMoneyBill frmInOutMoneyBill = new frmInOutMoneyBill();
			frmInOutMoneyBill.TopLevel = false;
			frmInOutMoneyBill.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmInOutMoneyBill);
			frmInOutMoneyBill.Type = "OUT";
			frmInOutMoneyBill.Text = "PHIẾU CHI - CHI TIỀN MẶT";
			frmInOutMoneyBill.userName = this.UserName;
			frmInOutMoneyBill.fullName = this.FullName;
			frmInOutMoneyBill.Show();
			this.Text = "TVS - GPP PHẦN MỀM QUẢN LÝ NHÀ THUỐC - PHIẾU CHI - CHI TIỀN MẶT";
		}
		private void mnuRepRetail_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmRepOutputRetail frmRepOutputRetail = new frmRepOutputRetail();
			frmRepOutputRetail.TopLevel = false;
			frmRepOutputRetail.Dock = DockStyle.Fill;
			frmRepOutputRetail.userName = this.UserName;
			this.splitContainer1.Panel2.Controls.Add(frmRepOutputRetail);
			frmRepOutputRetail.Show();
		}
		private void mnuBarcode_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmBarcode frmBarcode = new frmBarcode();
				frmBarcode.TopLevel = false;
				frmBarcode.Dock = DockStyle.Fill;
				frmBarcode.userName = this.UserName;
				frmBarcode.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmBarcode);
				frmBarcode.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuActPricePublic_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmActPricePublic frmActPricePublic = new frmActPricePublic();
				frmActPricePublic.TopLevel = false;
				frmActPricePublic.Dock = DockStyle.Fill;
				frmActPricePublic.userName = this.UserName;
				frmActPricePublic.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmActPricePublic);
				frmActPricePublic.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuTaskLog_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmTaskHistory frmTaskHistory = new frmTaskHistory();
			frmTaskHistory.TopLevel = false;
			frmTaskHistory.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmTaskHistory);
			frmTaskHistory.Show();
		}
		private void mnuSurplus_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmSurplus frmSurplus = new frmSurplus();
				frmSurplus.TopLevel = false;
				frmSurplus.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmSurplus);
				frmSurplus.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuTemHum_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			int num = 0;
			try
			{
				RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("Software\\TVSGPP", true);
				num = int.Parse(registryKey.GetValue("BookTempNum").ToString());
				registryKey.Close();
			}
			catch
			{
				num = 0;
			}
			if (num == 0)
			{
				frmBookTemHum frmBookTemHum = new frmBookTemHum();
				frmBookTemHum.TopLevel = false;
				frmBookTemHum.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmBookTemHum);
				frmBookTemHum.Show();
			}
			else
			{
				frmBookTemHum1 frmBookTemHum2 = new frmBookTemHum1();
				frmBookTemHum2.TopLevel = false;
				frmBookTemHum2.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmBookTemHum2);
				frmBookTemHum2.Show();
			}
		}
		private void mnuSideEffects_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			int num = 0;
			try
			{
				RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("Software\\TVSGPP", true);
				num = int.Parse(registryKey.GetValue("BookSlideEffect").ToString());
				registryKey.Close();
			}
			catch
			{
				num = 0;
			}
			if (num == 0)
			{
				frmBookSideEffects frmBookSideEffects = new frmBookSideEffects();
				frmBookSideEffects.TopLevel = false;
				frmBookSideEffects.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmBookSideEffects);
				frmBookSideEffects.Show();
			}
			else
			{
				frmBookSideEffects1 frmBookSideEffects2 = new frmBookSideEffects1();
				frmBookSideEffects2.TopLevel = false;
				frmBookSideEffects2.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmBookSideEffects2);
				frmBookSideEffects2.Show();
			}
		}
		private void mnuSellNotBill_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			int num = 0;
			try
			{
				RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("Software\\TVSGPP", true);
				num = int.Parse(registryKey.GetValue("SaleNotBill").ToString());
				registryKey.Close();
			}
			catch
			{
				num = 0;
			}
			if (num == 0)
			{
				frmBookSellNotBill frmBookSellNotBill = new frmBookSellNotBill();
				frmBookSellNotBill.TopLevel = false;
				frmBookSellNotBill.Dock = DockStyle.Fill;
				frmBookSellNotBill.userName = this.UserName;
				frmBookSellNotBill.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmBookSellNotBill);
				frmBookSellNotBill.Show();
			}
			else
			{
				frmBookSellNotBill1 frmBookSellNotBill2 = new frmBookSellNotBill1();
				frmBookSellNotBill2.TopLevel = false;
				frmBookSellNotBill2.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmBookSellNotBill2);
				frmBookSellNotBill2.Show();
			}
		}
		private void mnuTracePatients_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			int num = 0;
			try
			{
				RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("Software\\TVSGPP", true);
				num = int.Parse(registryKey.GetValue("BookPatients").ToString());
				registryKey.Close();
			}
			catch
			{
				num = 0;
			}
			if (num == 0)
			{
				frmTracePatients frmTracePatients = new frmTracePatients();
				frmTracePatients.TopLevel = false;
				frmTracePatients.Dock = DockStyle.Fill;
				frmTracePatients.userName = this.UserName;
				frmTracePatients.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmTracePatients);
				frmTracePatients.Show();
			}
			else
			{
				frmTracePatients1 frmTracePatients2 = new frmTracePatients1();
				frmTracePatients2.TopLevel = false;
				frmTracePatients2.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmTracePatients2);
				frmTracePatients2.Show();
			}
		}
		private void mnuSuppend_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmListSuppend frmListSuppend = new frmListSuppend();
			frmListSuppend.TopLevel = false;
			frmListSuppend.Dock = DockStyle.Fill;
			frmListSuppend.userName = this.UserName;
			this.splitContainer1.Panel2.Controls.Add(frmListSuppend);
			frmListSuppend.Show();
		}
		private void mnuRepGroupProduct_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmRepGroupProduct frmRepGroupProduct = new frmRepGroupProduct();
			frmRepGroupProduct.TopLevel = false;
			frmRepGroupProduct.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmRepGroupProduct);
			frmRepGroupProduct.Show();
		}
		private void mnurepProducts_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmRepProduct frmRepProduct = new frmRepProduct();
			frmRepProduct.TopLevel = false;
			frmRepProduct.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmRepProduct);
			frmRepProduct.Show();
		}
		private void mnuRepProvider_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmRepCustomer frmRepCustomer = new frmRepCustomer();
			frmRepCustomer.TopLevel = false;
			frmRepCustomer.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmRepCustomer);
			frmRepCustomer.Show();
		}
		private void mnuTraceQuantity_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmTraceQuantity frmTraceQuantity = new frmTraceQuantity();
			frmTraceQuantity.TopLevel = false;
			frmTraceQuantity.Dock = DockStyle.Fill;
			frmTraceQuantity.userName = this.UserName;
			this.splitContainer1.Panel2.Controls.Add(frmTraceQuantity);
			frmTraceQuantity.Show();
		}
		private void mnuBookProvider_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmRepProvider frmRepProvider = new frmRepProvider();
			frmRepProvider.TopLevel = false;
			frmRepProvider.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmRepProvider);
			frmRepProvider.Show();
		}
		private void mnuSellWithDoctor_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmOutputRetailWithDoctor frmOutputRetailWithDoctor = new frmOutputRetailWithDoctor();
			frmOutputRetailWithDoctor.TopLevel = false;
			frmOutputRetailWithDoctor.Dock = DockStyle.Fill;
			frmOutputRetailWithDoctor.userName = this.UserName;
			frmOutputRetailWithDoctor.fullName = this.FullName;
			this.splitContainer1.Panel2.Controls.Add(frmOutputRetailWithDoctor);
			frmOutputRetailWithDoctor.Show();
		}
		private void tsbSellWithDoctor_Click(object sender, EventArgs e)
		{
			try
			{
				this.mnuSellWithDoctor.PerformClick();
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}
		private void mnuCusFree_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmSearchCusFree frmSearchCusFree = new frmSearchCusFree();
			frmSearchCusFree.TopLevel = false;
			frmSearchCusFree.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmSearchCusFree);
			frmSearchCusFree.Show();
		}
		private void mnuCusSale_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmSearchCusSale frmSearchCusSale = new frmSearchCusSale();
			frmSearchCusSale.TopLevel = false;
			frmSearchCusSale.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmSearchCusSale);
			frmSearchCusSale.Show();
		}
		private void mnuPriceList_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmListPrice frmListPrice = new frmListPrice();
				frmListPrice.TopLevel = false;
				frmListPrice.Dock = DockStyle.Fill;
				frmListPrice.userName = this.UserName;
				frmListPrice.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmListPrice);
				frmListPrice.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
		{
			if (!FrmMain.autoUpdate)
			{
				if (this.updateNeed)
				{
					if (MessageBox.Show("Ứng dụng sẽ được đóng lại để cập nhật phiên bản mới\r\n\r\nBạn có chắc chắn muốn đóng ứng dụng không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
					{
						e.Cancel = true;
					}
				}
				else
				{
					if (MessageBox.Show("Bạn có chắc chắn muốn đóng ứng dụng không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
					{
						e.Cancel = true;
					}
				}
			}
		}
		private void tsmOrder_Click(object sender, EventArgs e)
		{
			wareHouse wareHouse = new wareHouse();
			if (wareHouse.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmOrder frmOrder = new frmOrder();
				frmOrder.TopLevel = false;
				frmOrder.Dock = DockStyle.Fill;
				frmOrder.userName = this.UserName;
				frmOrder.fullName = this.FullName;
				this.splitContainer1.Panel2.Controls.Add(frmOrder);
				frmOrder.Show();
			}
			else
			{
				MessageBox.Show("Không có kho hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void tsmPriceChange_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmPriceChange frmPriceChange = new frmPriceChange();
				frmPriceChange.TopLevel = false;
				frmPriceChange.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmPriceChange);
				frmPriceChange.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuUpdate_Click(object sender, EventArgs e)
		{
			try
			{
				string text = "";
				if (File.Exists("logUpdate.txt"))
				{
					StreamReader streamReader = File.OpenText("logUpdate.txt");
					text = streamReader.ReadToEnd().Trim().Replace("NEW", "").Trim();
					streamReader.Close();
				}
				string address = "http://www.trungvietsoftware.com/data/tvsgpp/logUpdate.txt";
				WebClient webClient = new WebClient();
				StreamReader streamReader2 = new StreamReader(webClient.OpenRead(address));
				string text2 = streamReader2.ReadToEnd().Replace("NEW", "").Trim();
				if (text2.Trim() != text.Trim())
				{
					this.updateNeed = true;
					Application.Exit();
				}
				else
				{
					MessageBox.Show("Không tìm thấy phiên bản mới để cập nhật", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}
		private void FrmMain_FormClosed(object sender, FormClosedEventArgs e)
		{
			if (this.updateNeed)
			{
				Process.Start("TVSUPDATE.exe");
			}
		}
		private void mnuOutInBalance_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmStock frmStock = new frmStock();
				frmStock.TopLevel = false;
				frmStock.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmStock);
				frmStock.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuStockForward_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmOutputDelete frmOutputDelete = new frmOutputDelete();
				frmOutputDelete.TopLevel = false;
				frmOutputDelete.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmOutputDelete);
				frmOutputDelete.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void mnuRepProductProvider_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmRepProductProvider frmRepProductProvider = new frmRepProductProvider();
			frmRepProductProvider.TopLevel = false;
			frmRepProductProvider.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmRepProductProvider);
			frmRepProductProvider.Show();
		}
		private void mnuBackup_Click(object sender, EventArgs e)
		{
			frmDataAct frmDataAct = new frmDataAct();
			frmDataAct.ShowDialog();
		}
		private void mnuFindProvider_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmSearchProvider frmSearchProvider = new frmSearchProvider();
			frmSearchProvider.TopLevel = false;
			frmSearchProvider.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmSearchProvider);
			frmSearchProvider.Show();
		}
		private void mnuDoctor_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			TVSBH.dir.frmDoctor frmDoctor = new TVSBH.dir.frmDoctor();
			frmDoctor.TopLevel = false;
			frmDoctor.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmDoctor);
			frmDoctor.Show();
		}
		private void mnuSearchDoctor_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmSearchDoctor frmSearchDoctor = new frmSearchDoctor();
			frmSearchDoctor.TopLevel = false;
			frmSearchDoctor.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmSearchDoctor);
			frmSearchDoctor.Show();
		}
		private void lblBottom1_DoubleClick(object sender, EventArgs e)
		{
		}
		private void lblRighButton_Click(object sender, EventArgs e)
		{
			try
			{
				Process.Start("http://www.trungvietsoftware.com");
			}
			catch
			{
			}
		}
		private void label1_DoubleClick(object sender, EventArgs e)
		{
			try
			{
				Process.Start("http://www.trungvietsoftware.com");
			}
			catch
			{
			}
		}
		private void tsbOutputDelete_Click(object sender, EventArgs e)
		{
			this.mnuDeleteProduct.PerformClick();
		}
		private void mnuStoreForward_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmStockForward frmStockForward = new frmStockForward();
			frmStockForward.TopLevel = false;
			frmStockForward.Dock = DockStyle.Fill;
			frmStockForward.userName = this.UserName;
			frmStockForward.fullName = this.FullName;
			this.splitContainer1.Panel2.Controls.Add(frmStockForward);
			frmStockForward.Show();
		}
		private void FrmMain_Shown(object sender, EventArgs e)
		{
			if (File.Exists("Update.txt"))
			{
				ThreadStart start = new ThreadStart(this.showWatting);
				Thread thread = new Thread(start);
				thread.Start();
				if (!thread.Join(150))
				{
					this.runScripFile("");
					File.Delete("Update.txt");
					TextWriter textWriter = new StreamWriter("Updated.txt");
					textWriter.WriteLine(DateTime.Now);
					textWriter.Close();
				}
				thread.Abort();
			}
		}
		public void runScripFile(string scriptFile)
		{
			try
			{
				string fileName = Application.StartupPath + "\\updateScript.sql";
				FileInfo fileInfo = new FileInfo(fileName);
				string sqlCommand = fileInfo.OpenText().ReadToEnd();
				SqlConnection sqlConnection = new SqlConnection(this.objFun.strConnectionString);
				Server server = new Server(new ServerConnection(sqlConnection));
				server.ConnectionContext.ExecuteNonQuery(sqlCommand);
				MessageBox.Show("Quá trình cập nhật dữ liệu đã hoàn thành", "TVS-GPP", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message);
			}
		}
		private void mnuIngredient_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmIngredient frmIngredient = new frmIngredient();
			frmIngredient.TopLevel = false;
			frmIngredient.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmIngredient);
			frmIngredient.Show();
		}
		private void mnuRepOutputDetailt_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmRepOutputDetail frmRepOutputDetail = new frmRepOutputDetail();
			frmRepOutputDetail.TopLevel = false;
			frmRepOutputDetail.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmRepOutputDetail);
			frmRepOutputDetail.Show();
		}
		private void mnuPrescriptions_Click(object sender, EventArgs e)
		{
			frmPrescriptions frmPrescriptions = new frmPrescriptions();
			frmPrescriptions.ShowDialog();
			if (frmPrescriptions.objTable != null)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmPrescriptionsView frmPrescriptionsView = new frmPrescriptionsView();
				frmPrescriptionsView.TopLevel = false;
				frmPrescriptionsView.Dock = DockStyle.Fill;
				frmPrescriptionsPrint.objTable = frmPrescriptions.objTable;
				this.splitContainer1.Panel2.Controls.Add(frmPrescriptionsView);
				frmPrescriptionsView.Show();
			}
		}
		private void mnuRepOutInBalancer_Click(object sender, EventArgs e)
		{
			frmOutInBalancer frmOutInBalancer = new frmOutInBalancer();
			frmOutInBalancer.ShowDialog();
			if (frmOutInBalancer.objTable != null)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmOutInBalancerView frmOutInBalancerView = new frmOutInBalancerView();
				frmOutInBalancerView.TopLevel = false;
				frmOutInBalancerView.Dock = DockStyle.Fill;
				frmOutInBalancerPrint.objTable = frmOutInBalancer.objTable;
				this.splitContainer1.Panel2.Controls.Add(frmOutInBalancerView);
				frmOutInBalancerView.Show();
			}
		}
		private void toolStripMenuItem1_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmPrescription frmPrescription = new frmPrescription();
			frmPrescription.TopLevel = false;
			frmPrescription.Dock = DockStyle.Fill;
			frmPrescription.userName = this.UserName;
			frmPrescription.fullName = this.FullName;
			this.splitContainer1.Panel2.Controls.Add(frmPrescription);
			frmPrescription.Show();
		}
		private void mnuBisImport_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			FrmupdtBisImpoter frmupdtBisImpoter = new FrmupdtBisImpoter();
			frmupdtBisImpoter.TopLevel = false;
			frmupdtBisImpoter.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmupdtBisImpoter);
			frmupdtBisImpoter.Show();
		}
		private void mnuReset_Click(object sender, EventArgs e)
		{
			if (MessageBox.Show("Cảnh báo :\r\n\r\nBạn có chắc chắn muốn xoá toàn bộ dữ liệu của hệ thống không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
			{
				frmResetData frmResetData = new frmResetData();
				frmResetData.ShowDialog();
			}
		}
		private void mnuQuocte_Click(object sender, EventArgs e)
		{
			groupProducts groupProducts = new groupProducts();
			products products = new products();
			if (groupProducts.getCount() > 0 && products.getCount() > 0)
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmQuotePrice frmQuotePrice = new frmQuotePrice();
				frmQuotePrice.TopLevel = false;
				frmQuotePrice.Dock = DockStyle.Fill;
				this.splitContainer1.Panel2.Controls.Add(frmQuotePrice);
				frmQuotePrice.Show();
			}
			else
			{
				MessageBox.Show("Không có mặt hàng nào tồn tại trên hệ thống\r\n\r\nCông tác quản lý không thể thực hiện được", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		private void lblRighButton_DoubleClick(object sender, EventArgs e)
		{
		}
		private void mnuOption_Click(object sender, EventArgs e)
		{
			frmAppOption frmAppOption = new frmAppOption();
			frmAppOption.ShowDialog();
		}
		private void mnuMedUsage_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmupdtProductUsage frmupdtProductUsage = new frmupdtProductUsage();
			frmupdtProductUsage.TopLevel = false;
			frmupdtProductUsage.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmupdtProductUsage);
			frmupdtProductUsage.Show();
		}
		private void mnuTmpPrescription_Click(object sender, EventArgs e)
		{
			Doctor doctor = new Doctor();
			string text = "";
			string doctorName = doctor.getDoctorName(this.UserName, ref text);
			if (text.Trim() == "")
			{
				MessageBox.Show("Chỉ có Bác sĩ mới được sử dụng chức năng này !", "Cảnh báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
			else
			{
				this.clearControl(this.splitContainer1, "objF1");
				frmTmpPrescription frmTmpPrescription = new frmTmpPrescription();
				frmTmpPrescription.TopLevel = false;
				frmTmpPrescription.Dock = DockStyle.Fill;
				frmTmpPrescription.userName = this.UserName;
				frmTmpPrescription.fullName = this.FullName;
				frmTmpPrescription.doctorID = doctorName;
				this.splitContainer1.Panel2.Controls.Add(frmTmpPrescription);
				frmTmpPrescription.Show();
			}
		}
		private void mnuBookSaleByBill_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmBookSaleByBill frmBookSaleByBill = new frmBookSaleByBill();
			frmBookSaleByBill.TopLevel = false;
			frmBookSaleByBill.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmBookSaleByBill);
			frmBookSaleByBill.Show();
		}
		private void mnuBookInput_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmBookInput frmBookInput = new frmBookInput();
			frmBookInput.TopLevel = false;
			frmBookInput.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmBookInput);
			frmBookInput.Show();
		}
		private void mnuBookDate_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmBookExpiryDate frmBookExpiryDate = new frmBookExpiryDate();
			frmBookExpiryDate.TopLevel = false;
			frmBookExpiryDate.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmBookExpiryDate);
			frmBookExpiryDate.Show();
		}
		private void mnuBookWaitingProcess_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmBookWattingForProcess frmBookWattingForProcess = new frmBookWattingForProcess();
			frmBookWattingForProcess.TopLevel = false;
			frmBookWattingForProcess.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmBookWattingForProcess);
			frmBookWattingForProcess.Show();
		}
		private void mnuBookClear_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmBookCleaningPharmacies frmBookCleaningPharmacies = new frmBookCleaningPharmacies();
			frmBookCleaningPharmacies.TopLevel = false;
			frmBookCleaningPharmacies.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmBookCleaningPharmacies);
			frmBookCleaningPharmacies.Show();
		}
		private void mnuListBillOutput_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmListRepOutput frmListRepOutput = new frmListRepOutput();
			frmListRepOutput.TopLevel = false;
			frmListRepOutput.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmListRepOutput);
			frmListRepOutput.Show();
		}
		private void mnuVATBill_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmVATBill frmVATBill = new frmVATBill();
			frmVATBill.TopLevel = false;
			frmVATBill.Dock = DockStyle.Fill;
			frmVATBill.userName = this.UserName;
			frmVATBill.fullName = this.FullName;
			this.splitContainer1.Panel2.Controls.Add(frmVATBill);
			frmVATBill.Show();
		}
		private void mnuTicketBillInput_Click(object sender, EventArgs e)
		{
			new frmBookSellNotBillView
			{
				objectName = "TicketBillInput"
			}.ShowDialog();
		}
		private void mnuTicketBillOutput_Click(object sender, EventArgs e)
		{
			new frmBookSellNotBillView
			{
				objectName = "TicketBillOutput"
			}.ShowDialog();
		}
		private void mnuBookUseFocusMind_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmFocusMind frmFocusMind = new frmFocusMind();
			frmFocusMind.TopLevel = false;
			frmFocusMind.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmFocusMind);
			frmFocusMind.Show();
		}
		private void mnuBookInOutFocusMind_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmInOutFocusMind frmInOutFocusMind = new frmInOutFocusMind();
			frmInOutFocusMind.TopLevel = false;
			frmInOutFocusMind.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmInOutFocusMind);
			frmInOutFocusMind.Show();
		}
		private void mnuPrescriptionsDetail_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmBillWithDoctor frmBillWithDoctor = new frmBillWithDoctor();
			frmBillWithDoctor.TopLevel = false;
			frmBillWithDoctor.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmBillWithDoctor);
			frmBillWithDoctor.Show();
		}
		private void mnuBookPlanFocusMind_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmFocusMindPlan frmFocusMindPlan = new frmFocusMindPlan();
			frmFocusMindPlan.TopLevel = false;
			frmFocusMindPlan.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmFocusMindPlan);
			frmFocusMindPlan.Show();
		}
		private void mnuPlanMake_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmProductsPlan frmProductsPlan = new frmProductsPlan();
			frmProductsPlan.TopLevel = false;
			frmProductsPlan.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmProductsPlan);
			frmProductsPlan.Show();
		}
		private void mnuIntraction_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmInteractionProduct frmInteractionProduct = new frmInteractionProduct();
			frmInteractionProduct.TopLevel = false;
			frmInteractionProduct.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmInteractionProduct);
			frmInteractionProduct.Show();
		}
		private void mnuBookProductDir_Click(object sender, EventArgs e)
		{
			this.clearControl(this.splitContainer1, "objF1");
			frmBookProduct frmBookProduct = new frmBookProduct();
			frmBookProduct.TopLevel = false;
			frmBookProduct.Dock = DockStyle.Fill;
			this.splitContainer1.Panel2.Controls.Add(frmBookProduct);
			frmBookProduct.Show();
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.components = new Container();
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmMain));
			this.splitContainer1 = new SplitContainer();
			this.toolStrip1 = new ToolStrip();
			this.toolStripLabel1 = new ToolStripLabel();
			this.tsbSellWithDoctor = new ToolStripButton();
			this.tsbS1 = new ToolStripSeparator();
			this.tsbOutputRetail = new ToolStripButton();
			this.tsbS2 = new ToolStripSeparator();
			this.tsbOutputTrade = new ToolStripButton();
			this.tsbS5 = new ToolStripSeparator();
			this.tsbInputWarehouse = new ToolStripButton();
			this.tsbS6 = new ToolStripSeparator();
			this.tsbBill = new ToolStripButton();
			this.tsbS7 = new ToolStripSeparator();
			this.tsbBalance = new ToolStripButton();
			this.tsbS8 = new ToolStripSeparator();
			this.tsbExpire = new ToolStripButton();
			this.toolStripSeparator3 = new ToolStripSeparator();
			this.tsbOutputDelete = new ToolStripButton();
			this.SSmainMenu = new MenuStrip();
			this.mnuSys = new ToolStripMenuItem();
			this.sysMnuLogin = new ToolStripMenuItem();
			this.mnuChangpass = new ToolStripMenuItem();
			this.toolStripSeparator1 = new ToolStripSeparator();
			this.mnuPermission = new ToolStripMenuItem();
			this.mnuGroup = new ToolStripMenuItem();
			this.toolStripSeparator6 = new ToolStripSeparator();
			this.mnuBusiness = new ToolStripMenuItem();
			this.mnuConfig = new ToolStripMenuItem();
			this.mnuBackup = new ToolStripMenuItem();
			this.mnuReset = new ToolStripMenuItem();
			this.toolStripSeparator10 = new ToolStripSeparator();
			this.mnuTaskLog = new ToolStripMenuItem();
			this.mnuPoints = new ToolStripMenuItem();
			this.toolStripSeparator35 = new ToolStripSeparator();
			this.mnuClose = new ToolStripMenuItem();
			this.mnuDir = new ToolStripMenuItem();
			this.mnuGroupProduct = new ToolStripMenuItem();
			this.mnuIngredient = new ToolStripMenuItem();
			this.mnuProduct = new ToolStripMenuItem();
			this.mnuMedUsage = new ToolStripMenuItem();
			this.mnuDisease = new ToolStripMenuItem();
			this.mnuTmpPrescription = new ToolStripMenuItem();
			this.toolStripSeparator30 = new ToolStripSeparator();
			this.mnuGroupCustomer = new ToolStripMenuItem();
			this.mnuCustomer = new ToolStripMenuItem();
			this.mnuDoctor = new ToolStripMenuItem();
			this.toolStripSeparator4 = new ToolStripSeparator();
			this.tMnuMadeIn = new ToolStripMenuItem();
			this.mnuCompany = new ToolStripMenuItem();
			this.mnuProvider = new ToolStripMenuItem();
			this.mnuBisImport = new ToolStripMenuItem();
			this.toolStripSeparator32 = new ToolStripSeparator();
			this.mnuWarehouse = new ToolStripMenuItem();
			this.mnuDonViTinh = new ToolStripMenuItem();
			this.tMnuTax = new ToolStripMenuItem();
			this.mnuTask = new ToolStripMenuItem();
			this.mnuSellWithDoctor = new ToolStripMenuItem();
			this.mnuOutputRetail = new ToolStripMenuItem();
			this.mnuOutputTrade = new ToolStripMenuItem();
			this.mnuInput = new ToolStripMenuItem();
			this.toolStripSeparator12 = new ToolStripSeparator();
			this.mnuPrescripTion = new ToolStripMenuItem();
			this.mnuIntraction = new ToolStripMenuItem();
			this.tsmOrder = new ToolStripMenuItem();
			this.mnuPlanMake = new ToolStripMenuItem();
			this.toolStripSeparator7 = new ToolStripSeparator();
			this.mnuBill = new ToolStripMenuItem();
			this.mnuExpiryDate = new ToolStripMenuItem();
			this.mnuUnderBalancer = new ToolStripMenuItem();
			this.toolStripSeparator2 = new ToolStripSeparator();
			this.mnuStock = new ToolStripMenuItem();
			this.mnuStorageCard = new ToolStripMenuItem();
			this.mnuBalancer = new ToolStripMenuItem();
			this.mnuStoreForward = new ToolStripMenuItem();
			this.mnuDeleteProduct = new ToolStripMenuItem();
			this.mnuOutInBalance = new ToolStripMenuItem();
			this.mnuBarcode = new ToolStripMenuItem();
			this.mnuActPricePublic = new ToolStripMenuItem();
			this.mnuPriceList = new ToolStripMenuItem();
			this.tsmPriceChange = new ToolStripMenuItem();
			this.toolStripSeparator17 = new ToolStripSeparator();
			this.mnuDebtFirst = new ToolStripMenuItem();
			this.mnuEqualDebt = new ToolStripMenuItem();
			this.mnuMoneyBillIn = new ToolStripMenuItem();
			this.mnuMoneyBillOut = new ToolStripMenuItem();
			this.toolStripSeparator18 = new ToolStripSeparator();
			this.mnuOption = new ToolStripMenuItem();
			this.mnuBook = new ToolStripMenuItem();
			this.mnuTemHum = new ToolStripMenuItem();
			this.mnuSideEffects = new ToolStripMenuItem();
			this.mnuSuppend = new ToolStripMenuItem();
			this.mnuTracePatients = new ToolStripMenuItem();
			this.mnuBookClear = new ToolStripMenuItem();
			this.mnuBookDate = new ToolStripMenuItem();
			this.mnuBookWaitingProcess = new ToolStripMenuItem();
			this.mnuBookInput = new ToolStripMenuItem();
			this.mnuBookProvider = new ToolStripMenuItem();
			this.toolStripSeparator21 = new ToolStripSeparator();
			this.mnuBookSaleByBill = new ToolStripMenuItem();
			this.mnuSellNotBill = new ToolStripMenuItem();
			this.mnuTraceQuantity = new ToolStripMenuItem();
			this.toolStripSeparator9 = new ToolStripSeparator();
			this.mnuBookUseFocusMind = new ToolStripMenuItem();
			this.mnuBookInOutFocusMind = new ToolStripMenuItem();
			this.mnuBookPlanFocusMind = new ToolStripMenuItem();
			this.toolStripSeparator11 = new ToolStripSeparator();
			this.mnuBookProductDir = new ToolStripMenuItem();
			this.mnuBookProductDirByGroup = new ToolStripMenuItem();
			this.mnuSearch = new ToolStripMenuItem();
			this.mnuCusFree = new ToolStripMenuItem();
			this.mnuCusSale = new ToolStripMenuItem();
			this.mnuFindProvider = new ToolStripMenuItem();
			this.mnuSearchDoctor = new ToolStripMenuItem();
			this.mnuReport = new ToolStripMenuItem();
			this.mnuRepInput = new ToolStripMenuItem();
			this.mnuRepOutput = new ToolStripMenuItem();
			this.mnuRepOutputDetailt = new ToolStripMenuItem();
			this.mnuLogRetail = new ToolStripMenuItem();
			this.mnuRepRetail = new ToolStripMenuItem();
			this.mnuRepOutInBalancer = new ToolStripMenuItem();
			this.toolStripSeparator5 = new ToolStripSeparator();
			this.mnuPrescriptions = new ToolStripMenuItem();
			this.mnuPrescriptionsDetail = new ToolStripMenuItem();
			this.mnuListBillOutput = new ToolStripMenuItem();
			this.mnuTicketBillInput = new ToolStripMenuItem();
			this.mnuTicketBillOutput = new ToolStripMenuItem();
			this.toolStripSeparator19 = new ToolStripSeparator();
			this.mnuQuocte = new ToolStripMenuItem();
			this.mnuPricePublic = new ToolStripMenuItem();
			this.mnuInventory = new ToolStripMenuItem();
			this.mnuSurplus = new ToolStripMenuItem();
			this.toolStripSeparator20 = new ToolStripSeparator();
			this.mnuRepGroupProduct = new ToolStripMenuItem();
			this.mnurepProducts = new ToolStripMenuItem();
			this.mnuRepCustomer = new ToolStripMenuItem();
			this.mnuRepProductProvider = new ToolStripMenuItem();
			this.SSmnuHelp = new ToolStripMenuItem();
			this.mnuIntro = new ToolStripMenuItem();
			this.mnuUpdate = new ToolStripMenuItem();
			this.toolStripSeparator13 = new ToolStripSeparator();
			this.tlSHelpFast = new ToolStripMenuItem();
			this.mnuUserGuide = new ToolStripMenuItem();
			this.toolStripSeparator40 = new ToolStripSeparator();
			this.mnuRegis = new ToolStripMenuItem();
			this.statusStrip1 = new StatusStrip();
			this.lblBottom1 = new Label();
			this.lblFullName = new Label();
			this.toolTip1 = new ToolTip(this.components);
			this.lblBar = new Label();
			this.lblRighButton = new Label();
			this.label1 = new Label();
			this.splitContainer1.Panel1.SuspendLayout();
			this.splitContainer1.SuspendLayout();
			this.toolStrip1.SuspendLayout();
			this.SSmainMenu.SuspendLayout();
			base.SuspendLayout();
			componentResourceManager.ApplyResources(this.splitContainer1, "splitContainer1");
			this.splitContainer1.BorderStyle = BorderStyle.FixedSingle;
			this.splitContainer1.FixedPanel = FixedPanel.Panel1;
			this.splitContainer1.Name = "splitContainer1";
			this.splitContainer1.Panel1.Controls.Add(this.toolStrip1);
			this.splitContainer1.Panel2.BackColor = SystemColors.AppWorkspace;
			componentResourceManager.ApplyResources(this.splitContainer1.Panel2, "splitContainer1.Panel2");
			this.splitContainer1.Panel2.ControlAdded += new ControlEventHandler(this.splitContainer1_Panel2_ControlAdded);
			this.splitContainer1.Panel2.ControlRemoved += new ControlEventHandler(this.splitContainer1_Panel2_ControlRemoved);
			componentResourceManager.ApplyResources(this.toolStrip1, "toolStrip1");
			this.toolStrip1.GripMargin = new Padding(12, 2, 2, 2);
			this.toolStrip1.GripStyle = ToolStripGripStyle.Hidden;
			this.toolStrip1.Items.AddRange(new ToolStripItem[]
			{
				this.toolStripLabel1,
				this.tsbSellWithDoctor,
				this.tsbS1,
				this.tsbOutputRetail,
				this.tsbS2,
				this.tsbOutputTrade,
				this.tsbS5,
				this.tsbInputWarehouse,
				this.tsbS6,
				this.tsbBill,
				this.tsbS7,
				this.tsbBalance,
				this.tsbS8,
				this.tsbExpire,
				this.toolStripSeparator3,
				this.tsbOutputDelete
			});
			this.toolStrip1.LayoutStyle = ToolStripLayoutStyle.VerticalStackWithOverflow;
			this.toolStrip1.Name = "toolStrip1";
			componentResourceManager.ApplyResources(this.toolStripLabel1, "toolStripLabel1");
			this.toolStripLabel1.Name = "toolStripLabel1";
			componentResourceManager.ApplyResources(this.tsbSellWithDoctor, "tsbSellWithDoctor");
			this.tsbSellWithDoctor.AutoToolTip = false;
			this.tsbSellWithDoctor.Name = "tsbSellWithDoctor";
			this.tsbSellWithDoctor.Click += new EventHandler(this.tsbSellWithDoctor_Click);
			componentResourceManager.ApplyResources(this.tsbS1, "tsbS1");
			this.tsbS1.Name = "tsbS1";
			this.tsbS1.Overflow = ToolStripItemOverflow.Never;
			componentResourceManager.ApplyResources(this.tsbOutputRetail, "tsbOutputRetail");
			this.tsbOutputRetail.AutoToolTip = false;
			this.tsbOutputRetail.Name = "tsbOutputRetail";
			this.tsbOutputRetail.Click += new EventHandler(this.tsbOutputRetail_Click);
			componentResourceManager.ApplyResources(this.tsbS2, "tsbS2");
			this.tsbS2.Name = "tsbS2";
			componentResourceManager.ApplyResources(this.tsbOutputTrade, "tsbOutputTrade");
			this.tsbOutputTrade.AutoToolTip = false;
			this.tsbOutputTrade.Name = "tsbOutputTrade";
			this.tsbOutputTrade.Click += new EventHandler(this.tsbOutputTrade_Click);
			componentResourceManager.ApplyResources(this.tsbS5, "tsbS5");
			this.tsbS5.Name = "tsbS5";
			componentResourceManager.ApplyResources(this.tsbInputWarehouse, "tsbInputWarehouse");
			this.tsbInputWarehouse.AutoToolTip = false;
			this.tsbInputWarehouse.Name = "tsbInputWarehouse";
			this.tsbInputWarehouse.Click += new EventHandler(this.tsbInputWarehouse_Click);
			componentResourceManager.ApplyResources(this.tsbS6, "tsbS6");
			this.tsbS6.Name = "tsbS6";
			componentResourceManager.ApplyResources(this.tsbBill, "tsbBill");
			this.tsbBill.Name = "tsbBill";
			this.tsbBill.Click += new EventHandler(this.tsbBill_Click);
			componentResourceManager.ApplyResources(this.tsbS7, "tsbS7");
			this.tsbS7.Name = "tsbS7";
			componentResourceManager.ApplyResources(this.tsbBalance, "tsbBalance");
			this.tsbBalance.Name = "tsbBalance";
			this.tsbBalance.Click += new EventHandler(this.tsbBalance_Click);
			componentResourceManager.ApplyResources(this.tsbS8, "tsbS8");
			this.tsbS8.Name = "tsbS8";
			componentResourceManager.ApplyResources(this.tsbExpire, "tsbExpire");
			this.tsbExpire.Name = "tsbExpire";
			this.tsbExpire.Click += new EventHandler(this.tsbExpire_Click);
			componentResourceManager.ApplyResources(this.toolStripSeparator3, "toolStripSeparator3");
			this.toolStripSeparator3.Name = "toolStripSeparator3";
			componentResourceManager.ApplyResources(this.tsbOutputDelete, "tsbOutputDelete");
			this.tsbOutputDelete.Name = "tsbOutputDelete";
			this.tsbOutputDelete.Click += new EventHandler(this.tsbOutputDelete_Click);
			componentResourceManager.ApplyResources(this.SSmainMenu, "SSmainMenu");
			this.SSmainMenu.Items.AddRange(new ToolStripItem[]
			{
				this.mnuSys,
				this.mnuDir,
				this.mnuTask,
				this.mnuBook,
				this.mnuSearch,
				this.mnuReport,
				this.SSmnuHelp
			});
			this.SSmainMenu.Name = "SSmainMenu";
			this.SSmainMenu.RenderMode = ToolStripRenderMode.Professional;
			this.mnuSys.DropDownItems.AddRange(new ToolStripItem[]
			{
				this.sysMnuLogin,
				this.mnuChangpass,
				this.toolStripSeparator1,
				this.mnuPermission,
				this.mnuGroup,
				this.toolStripSeparator6,
				this.mnuBusiness,
				this.mnuConfig,
				this.mnuBackup,
				this.mnuReset,
				this.toolStripSeparator10,
				this.mnuTaskLog,
				this.mnuPoints,
				this.toolStripSeparator35,
				this.mnuClose
			});
			componentResourceManager.ApplyResources(this.mnuSys, "mnuSys");
			this.mnuSys.Name = "mnuSys";
			componentResourceManager.ApplyResources(this.sysMnuLogin, "sysMnuLogin");
			this.sysMnuLogin.Name = "sysMnuLogin";
			this.sysMnuLogin.Click += new EventHandler(this.sysMnuLogin_Click);
			componentResourceManager.ApplyResources(this.mnuChangpass, "mnuChangpass");
			this.mnuChangpass.Name = "mnuChangpass";
			this.mnuChangpass.Click += new EventHandler(this.mnuChangpass_Click);
			this.toolStripSeparator1.Name = "toolStripSeparator1";
			componentResourceManager.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1");
			componentResourceManager.ApplyResources(this.mnuPermission, "mnuPermission");
			this.mnuPermission.Name = "mnuPermission";
			this.mnuPermission.Click += new EventHandler(this.mnuPermission_Click);
			componentResourceManager.ApplyResources(this.mnuGroup, "mnuGroup");
			this.mnuGroup.Name = "mnuGroup";
			this.mnuGroup.Click += new EventHandler(this.mnuGroup_Click);
			this.toolStripSeparator6.Name = "toolStripSeparator6";
			componentResourceManager.ApplyResources(this.toolStripSeparator6, "toolStripSeparator6");
			componentResourceManager.ApplyResources(this.mnuBusiness, "mnuBusiness");
			this.mnuBusiness.Name = "mnuBusiness";
			this.mnuBusiness.Click += new EventHandler(this.mnuBusiness_Click);
			componentResourceManager.ApplyResources(this.mnuConfig, "mnuConfig");
			this.mnuConfig.Name = "mnuConfig";
			this.mnuConfig.Click += new EventHandler(this.mnuConfig_Click);
			componentResourceManager.ApplyResources(this.mnuBackup, "mnuBackup");
			this.mnuBackup.Name = "mnuBackup";
			this.mnuBackup.Click += new EventHandler(this.mnuBackup_Click);
			this.mnuReset.Name = "mnuReset";
			componentResourceManager.ApplyResources(this.mnuReset, "mnuReset");
			this.mnuReset.Click += new EventHandler(this.mnuReset_Click);
			this.toolStripSeparator10.Name = "toolStripSeparator10";
			componentResourceManager.ApplyResources(this.toolStripSeparator10, "toolStripSeparator10");
			componentResourceManager.ApplyResources(this.mnuTaskLog, "mnuTaskLog");
			this.mnuTaskLog.Name = "mnuTaskLog";
			this.mnuTaskLog.Click += new EventHandler(this.mnuTaskLog_Click);
			componentResourceManager.ApplyResources(this.mnuPoints, "mnuPoints");
			this.mnuPoints.Name = "mnuPoints";
			this.mnuPoints.Click += new EventHandler(this.mnuPoints_Click);
			this.toolStripSeparator35.Name = "toolStripSeparator35";
			componentResourceManager.ApplyResources(this.toolStripSeparator35, "toolStripSeparator35");
			componentResourceManager.ApplyResources(this.mnuClose, "mnuClose");
			this.mnuClose.Name = "mnuClose";
			this.mnuClose.Click += new EventHandler(this.mnuClose_Click);
			this.mnuDir.DropDownItems.AddRange(new ToolStripItem[]
			{
				this.mnuGroupProduct,
				this.mnuIngredient,
				this.mnuProduct,
				this.mnuMedUsage,
				this.mnuDisease,
				this.mnuTmpPrescription,
				this.toolStripSeparator30,
				this.mnuGroupCustomer,
				this.mnuCustomer,
				this.mnuDoctor,
				this.toolStripSeparator4,
				this.tMnuMadeIn,
				this.mnuCompany,
				this.mnuProvider,
				this.mnuBisImport,
				this.toolStripSeparator32,
				this.mnuWarehouse,
				this.mnuDonViTinh,
				this.tMnuTax
			});
			componentResourceManager.ApplyResources(this.mnuDir, "mnuDir");
			this.mnuDir.Name = "mnuDir";
			componentResourceManager.ApplyResources(this.mnuGroupProduct, "mnuGroupProduct");
			this.mnuGroupProduct.Name = "mnuGroupProduct";
			this.mnuGroupProduct.Click += new EventHandler(this.mnuGroupProduct_Click);
			componentResourceManager.ApplyResources(this.mnuIngredient, "mnuIngredient");
			this.mnuIngredient.Name = "mnuIngredient";
			this.mnuIngredient.Click += new EventHandler(this.mnuIngredient_Click);
			componentResourceManager.ApplyResources(this.mnuProduct, "mnuProduct");
			this.mnuProduct.Name = "mnuProduct";
			this.mnuProduct.Click += new EventHandler(this.mnuProduct_Click);
			componentResourceManager.ApplyResources(this.mnuMedUsage, "mnuMedUsage");
			this.mnuMedUsage.Name = "mnuMedUsage";
			this.mnuMedUsage.Click += new EventHandler(this.mnuMedUsage_Click);
			componentResourceManager.ApplyResources(this.mnuDisease, "mnuDisease");
			this.mnuDisease.Name = "mnuDisease";
			this.mnuDisease.Click += new EventHandler(this.mnuDisease_Click);
			componentResourceManager.ApplyResources(this.mnuTmpPrescription, "mnuTmpPrescription");
			this.mnuTmpPrescription.Name = "mnuTmpPrescription";
			this.mnuTmpPrescription.Click += new EventHandler(this.mnuTmpPrescription_Click);
			this.toolStripSeparator30.Name = "toolStripSeparator30";
			componentResourceManager.ApplyResources(this.toolStripSeparator30, "toolStripSeparator30");
			componentResourceManager.ApplyResources(this.mnuGroupCustomer, "mnuGroupCustomer");
			this.mnuGroupCustomer.Name = "mnuGroupCustomer";
			this.mnuGroupCustomer.Click += new EventHandler(this.mnuGroupCustomer_Click);
			componentResourceManager.ApplyResources(this.mnuCustomer, "mnuCustomer");
			this.mnuCustomer.Name = "mnuCustomer";
			this.mnuCustomer.Click += new EventHandler(this.mnuCustomer_Click);
			componentResourceManager.ApplyResources(this.mnuDoctor, "mnuDoctor");
			this.mnuDoctor.Name = "mnuDoctor";
			this.mnuDoctor.Click += new EventHandler(this.mnuDoctor_Click);
			this.toolStripSeparator4.Name = "toolStripSeparator4";
			componentResourceManager.ApplyResources(this.toolStripSeparator4, "toolStripSeparator4");
			componentResourceManager.ApplyResources(this.tMnuMadeIn, "tMnuMadeIn");
			this.tMnuMadeIn.Name = "tMnuMadeIn";
			this.tMnuMadeIn.Click += new EventHandler(this.tMnuMadeIn_Click);
			componentResourceManager.ApplyResources(this.mnuCompany, "mnuCompany");
			this.mnuCompany.Name = "mnuCompany";
			this.mnuCompany.Click += new EventHandler(this.mnuCompany_Click);
			componentResourceManager.ApplyResources(this.mnuProvider, "mnuProvider");
			this.mnuProvider.Name = "mnuProvider";
			this.mnuProvider.Click += new EventHandler(this.mnuProvider_Click);
			componentResourceManager.ApplyResources(this.mnuBisImport, "mnuBisImport");
			this.mnuBisImport.Name = "mnuBisImport";
			this.mnuBisImport.Click += new EventHandler(this.mnuBisImport_Click);
			this.toolStripSeparator32.Name = "toolStripSeparator32";
			componentResourceManager.ApplyResources(this.toolStripSeparator32, "toolStripSeparator32");
			componentResourceManager.ApplyResources(this.mnuWarehouse, "mnuWarehouse");
			this.mnuWarehouse.Name = "mnuWarehouse";
			this.mnuWarehouse.Click += new EventHandler(this.mnuWarehouse_Click);
			componentResourceManager.ApplyResources(this.mnuDonViTinh, "mnuDonViTinh");
			this.mnuDonViTinh.Name = "mnuDonViTinh";
			this.mnuDonViTinh.Click += new EventHandler(this.mnuDonViTinh_Click);
			componentResourceManager.ApplyResources(this.tMnuTax, "tMnuTax");
			this.tMnuTax.Name = "tMnuTax";
			this.tMnuTax.Click += new EventHandler(this.tMnuTax_Click);
			this.mnuTask.DropDownItems.AddRange(new ToolStripItem[]
			{
				this.mnuSellWithDoctor,
				this.mnuOutputRetail,
				this.mnuOutputTrade,
				this.mnuInput,
				this.toolStripSeparator12,
				this.mnuPrescripTion,
				this.mnuIntraction,
				this.tsmOrder,
				this.mnuPlanMake,
				this.toolStripSeparator7,
				this.mnuBill,
				this.mnuExpiryDate,
				this.mnuUnderBalancer,
				this.toolStripSeparator2,
				this.mnuStock,
				this.mnuBarcode,
				this.mnuActPricePublic,
				this.mnuPriceList,
				this.tsmPriceChange,
				this.toolStripSeparator17,
				this.mnuDebtFirst,
				this.mnuEqualDebt,
				this.mnuMoneyBillIn,
				this.mnuMoneyBillOut,
				this.toolStripSeparator18,
				this.mnuOption
			});
			this.mnuTask.Name = "mnuTask";
			componentResourceManager.ApplyResources(this.mnuTask, "mnuTask");
			componentResourceManager.ApplyResources(this.mnuSellWithDoctor, "mnuSellWithDoctor");
			this.mnuSellWithDoctor.Name = "mnuSellWithDoctor";
			this.mnuSellWithDoctor.Click += new EventHandler(this.mnuSellWithDoctor_Click);
			componentResourceManager.ApplyResources(this.mnuOutputRetail, "mnuOutputRetail");
			this.mnuOutputRetail.Name = "mnuOutputRetail";
			this.mnuOutputRetail.Click += new EventHandler(this.mnuOutput_Click);
			componentResourceManager.ApplyResources(this.mnuOutputTrade, "mnuOutputTrade");
			this.mnuOutputTrade.Name = "mnuOutputTrade";
			this.mnuOutputTrade.Click += new EventHandler(this.mnuOutputTrade_Click);
			componentResourceManager.ApplyResources(this.mnuInput, "mnuInput");
			this.mnuInput.Name = "mnuInput";
			this.mnuInput.Click += new EventHandler(this.mnuInput_Click);
			this.toolStripSeparator12.Name = "toolStripSeparator12";
			componentResourceManager.ApplyResources(this.toolStripSeparator12, "toolStripSeparator12");
			componentResourceManager.ApplyResources(this.mnuPrescripTion, "mnuPrescripTion");
			this.mnuPrescripTion.Name = "mnuPrescripTion";
			this.mnuPrescripTion.Click += new EventHandler(this.toolStripMenuItem1_Click);
			componentResourceManager.ApplyResources(this.mnuIntraction, "mnuIntraction");
			this.mnuIntraction.Name = "mnuIntraction";
			this.mnuIntraction.Click += new EventHandler(this.mnuIntraction_Click);
			componentResourceManager.ApplyResources(this.tsmOrder, "tsmOrder");
			this.tsmOrder.Name = "tsmOrder";
			this.tsmOrder.Click += new EventHandler(this.tsmOrder_Click);
			componentResourceManager.ApplyResources(this.mnuPlanMake, "mnuPlanMake");
			this.mnuPlanMake.Name = "mnuPlanMake";
			this.mnuPlanMake.Click += new EventHandler(this.mnuPlanMake_Click);
			this.toolStripSeparator7.Name = "toolStripSeparator7";
			componentResourceManager.ApplyResources(this.toolStripSeparator7, "toolStripSeparator7");
			componentResourceManager.ApplyResources(this.mnuBill, "mnuBill");
			this.mnuBill.Name = "mnuBill";
			this.mnuBill.Click += new EventHandler(this.mnuBill_Click);
			componentResourceManager.ApplyResources(this.mnuExpiryDate, "mnuExpiryDate");
			this.mnuExpiryDate.Name = "mnuExpiryDate";
			this.mnuExpiryDate.Click += new EventHandler(this.mnuExpiryDate_Click);
			componentResourceManager.ApplyResources(this.mnuUnderBalancer, "mnuUnderBalancer");
			this.mnuUnderBalancer.Name = "mnuUnderBalancer";
			this.mnuUnderBalancer.Click += new EventHandler(this.mnuUnderBalancer_Click);
			this.toolStripSeparator2.Name = "toolStripSeparator2";
			componentResourceManager.ApplyResources(this.toolStripSeparator2, "toolStripSeparator2");
			this.mnuStock.DropDownItems.AddRange(new ToolStripItem[]
			{
				this.mnuStorageCard,
				this.mnuBalancer,
				this.mnuStoreForward,
				this.mnuDeleteProduct,
				this.mnuOutInBalance
			});
			componentResourceManager.ApplyResources(this.mnuStock, "mnuStock");
			this.mnuStock.Name = "mnuStock";
			componentResourceManager.ApplyResources(this.mnuStorageCard, "mnuStorageCard");
			this.mnuStorageCard.Name = "mnuStorageCard";
			this.mnuStorageCard.Click += new EventHandler(this.mnuStorageCard_Click);
			componentResourceManager.ApplyResources(this.mnuBalancer, "mnuBalancer");
			this.mnuBalancer.Name = "mnuBalancer";
			this.mnuBalancer.Click += new EventHandler(this.mnuBalancer_Click);
			componentResourceManager.ApplyResources(this.mnuStoreForward, "mnuStoreForward");
			this.mnuStoreForward.Name = "mnuStoreForward";
			this.mnuStoreForward.Click += new EventHandler(this.mnuStoreForward_Click);
			componentResourceManager.ApplyResources(this.mnuDeleteProduct, "mnuDeleteProduct");
			this.mnuDeleteProduct.Name = "mnuDeleteProduct";
			this.mnuDeleteProduct.Click += new EventHandler(this.mnuStockForward_Click);
			componentResourceManager.ApplyResources(this.mnuOutInBalance, "mnuOutInBalance");
			this.mnuOutInBalance.Name = "mnuOutInBalance";
			this.mnuOutInBalance.Click += new EventHandler(this.mnuOutInBalance_Click);
			componentResourceManager.ApplyResources(this.mnuBarcode, "mnuBarcode");
			this.mnuBarcode.Name = "mnuBarcode";
			this.mnuBarcode.Click += new EventHandler(this.mnuBarcode_Click);
			componentResourceManager.ApplyResources(this.mnuActPricePublic, "mnuActPricePublic");
			this.mnuActPricePublic.Name = "mnuActPricePublic";
			this.mnuActPricePublic.Click += new EventHandler(this.mnuActPricePublic_Click);
			componentResourceManager.ApplyResources(this.mnuPriceList, "mnuPriceList");
			this.mnuPriceList.Name = "mnuPriceList";
			this.mnuPriceList.Click += new EventHandler(this.mnuPriceList_Click);
			componentResourceManager.ApplyResources(this.tsmPriceChange, "tsmPriceChange");
			this.tsmPriceChange.Name = "tsmPriceChange";
			this.tsmPriceChange.Click += new EventHandler(this.tsmPriceChange_Click);
			this.toolStripSeparator17.Name = "toolStripSeparator17";
			componentResourceManager.ApplyResources(this.toolStripSeparator17, "toolStripSeparator17");
			componentResourceManager.ApplyResources(this.mnuDebtFirst, "mnuDebtFirst");
			this.mnuDebtFirst.Name = "mnuDebtFirst";
			this.mnuDebtFirst.Click += new EventHandler(this.mnuDebtFirst_Click);
			componentResourceManager.ApplyResources(this.mnuEqualDebt, "mnuEqualDebt");
			this.mnuEqualDebt.Name = "mnuEqualDebt";
			this.mnuEqualDebt.Click += new EventHandler(this.mnuEqualDebt_Click);
			componentResourceManager.ApplyResources(this.mnuMoneyBillIn, "mnuMoneyBillIn");
			this.mnuMoneyBillIn.Name = "mnuMoneyBillIn";
			this.mnuMoneyBillIn.Click += new EventHandler(this.mnuMoneyBillIn_Click);
			componentResourceManager.ApplyResources(this.mnuMoneyBillOut, "mnuMoneyBillOut");
			this.mnuMoneyBillOut.Name = "mnuMoneyBillOut";
			this.mnuMoneyBillOut.Click += new EventHandler(this.mnuMoneyBillOut_Click);
			this.toolStripSeparator18.Name = "toolStripSeparator18";
			componentResourceManager.ApplyResources(this.toolStripSeparator18, "toolStripSeparator18");
			componentResourceManager.ApplyResources(this.mnuOption, "mnuOption");
			this.mnuOption.Name = "mnuOption";
			this.mnuOption.Click += new EventHandler(this.mnuOption_Click);
			this.mnuBook.DropDownItems.AddRange(new ToolStripItem[]
			{
				this.mnuTemHum,
				this.mnuSideEffects,
				this.mnuSuppend,
				this.mnuTracePatients,
				this.mnuBookClear,
				this.mnuBookDate,
				this.mnuBookWaitingProcess,
				this.mnuBookInput,
				this.mnuBookProvider,
				this.toolStripSeparator21,
				this.mnuBookSaleByBill,
				this.mnuSellNotBill,
				this.mnuTraceQuantity,
				this.toolStripSeparator9,
				this.mnuBookUseFocusMind,
				this.mnuBookInOutFocusMind,
				this.mnuBookPlanFocusMind,
				this.toolStripSeparator11,
				this.mnuBookProductDir,
				this.mnuBookProductDirByGroup
			});
			this.mnuBook.Name = "mnuBook";
			componentResourceManager.ApplyResources(this.mnuBook, "mnuBook");
			componentResourceManager.ApplyResources(this.mnuTemHum, "mnuTemHum");
			this.mnuTemHum.Name = "mnuTemHum";
			this.mnuTemHum.Click += new EventHandler(this.mnuTemHum_Click);
			componentResourceManager.ApplyResources(this.mnuSideEffects, "mnuSideEffects");
			this.mnuSideEffects.Name = "mnuSideEffects";
			this.mnuSideEffects.Click += new EventHandler(this.mnuSideEffects_Click);
			componentResourceManager.ApplyResources(this.mnuSuppend, "mnuSuppend");
			this.mnuSuppend.Name = "mnuSuppend";
			this.mnuSuppend.Click += new EventHandler(this.mnuSuppend_Click);
			componentResourceManager.ApplyResources(this.mnuTracePatients, "mnuTracePatients");
			this.mnuTracePatients.Name = "mnuTracePatients";
			this.mnuTracePatients.Click += new EventHandler(this.mnuTracePatients_Click);
			componentResourceManager.ApplyResources(this.mnuBookClear, "mnuBookClear");
			this.mnuBookClear.Name = "mnuBookClear";
			this.mnuBookClear.Click += new EventHandler(this.mnuBookClear_Click);
			componentResourceManager.ApplyResources(this.mnuBookDate, "mnuBookDate");
			this.mnuBookDate.Name = "mnuBookDate";
			this.mnuBookDate.Click += new EventHandler(this.mnuBookDate_Click);
			componentResourceManager.ApplyResources(this.mnuBookWaitingProcess, "mnuBookWaitingProcess");
			this.mnuBookWaitingProcess.Name = "mnuBookWaitingProcess";
			this.mnuBookWaitingProcess.Click += new EventHandler(this.mnuBookWaitingProcess_Click);
			componentResourceManager.ApplyResources(this.mnuBookInput, "mnuBookInput");
			this.mnuBookInput.Name = "mnuBookInput";
			this.mnuBookInput.Click += new EventHandler(this.mnuBookInput_Click);
			componentResourceManager.ApplyResources(this.mnuBookProvider, "mnuBookProvider");
			this.mnuBookProvider.Name = "mnuBookProvider";
			this.mnuBookProvider.Click += new EventHandler(this.mnuBookProvider_Click);
			this.toolStripSeparator21.Name = "toolStripSeparator21";
			componentResourceManager.ApplyResources(this.toolStripSeparator21, "toolStripSeparator21");
			componentResourceManager.ApplyResources(this.mnuBookSaleByBill, "mnuBookSaleByBill");
			this.mnuBookSaleByBill.Name = "mnuBookSaleByBill";
			this.mnuBookSaleByBill.Click += new EventHandler(this.mnuBookSaleByBill_Click);
			componentResourceManager.ApplyResources(this.mnuSellNotBill, "mnuSellNotBill");
			this.mnuSellNotBill.Name = "mnuSellNotBill";
			this.mnuSellNotBill.Click += new EventHandler(this.mnuSellNotBill_Click);
			componentResourceManager.ApplyResources(this.mnuTraceQuantity, "mnuTraceQuantity");
			this.mnuTraceQuantity.Name = "mnuTraceQuantity";
			this.mnuTraceQuantity.Click += new EventHandler(this.mnuTraceQuantity_Click);
			this.toolStripSeparator9.Name = "toolStripSeparator9";
			componentResourceManager.ApplyResources(this.toolStripSeparator9, "toolStripSeparator9");
			componentResourceManager.ApplyResources(this.mnuBookUseFocusMind, "mnuBookUseFocusMind");
			this.mnuBookUseFocusMind.Name = "mnuBookUseFocusMind";
			this.mnuBookUseFocusMind.Click += new EventHandler(this.mnuBookUseFocusMind_Click);
			componentResourceManager.ApplyResources(this.mnuBookInOutFocusMind, "mnuBookInOutFocusMind");
			this.mnuBookInOutFocusMind.Name = "mnuBookInOutFocusMind";
			this.mnuBookInOutFocusMind.Click += new EventHandler(this.mnuBookInOutFocusMind_Click);
			this.mnuBookPlanFocusMind.Name = "mnuBookPlanFocusMind";
			componentResourceManager.ApplyResources(this.mnuBookPlanFocusMind, "mnuBookPlanFocusMind");
			this.mnuBookPlanFocusMind.Click += new EventHandler(this.mnuBookPlanFocusMind_Click);
			this.toolStripSeparator11.Name = "toolStripSeparator11";
			componentResourceManager.ApplyResources(this.toolStripSeparator11, "toolStripSeparator11");
			this.mnuBookProductDir.Name = "mnuBookProductDir";
			componentResourceManager.ApplyResources(this.mnuBookProductDir, "mnuBookProductDir");
			this.mnuBookProductDir.Click += new EventHandler(this.mnuBookProductDir_Click);
			this.mnuBookProductDirByGroup.Name = "mnuBookProductDirByGroup";
			componentResourceManager.ApplyResources(this.mnuBookProductDirByGroup, "mnuBookProductDirByGroup");
			this.mnuSearch.DropDownItems.AddRange(new ToolStripItem[]
			{
				this.mnuCusFree,
				this.mnuCusSale,
				this.mnuFindProvider,
				this.mnuSearchDoctor
			});
			this.mnuSearch.Name = "mnuSearch";
			componentResourceManager.ApplyResources(this.mnuSearch, "mnuSearch");
			componentResourceManager.ApplyResources(this.mnuCusFree, "mnuCusFree");
			this.mnuCusFree.Name = "mnuCusFree";
			this.mnuCusFree.Click += new EventHandler(this.mnuCusFree_Click);
			componentResourceManager.ApplyResources(this.mnuCusSale, "mnuCusSale");
			this.mnuCusSale.Name = "mnuCusSale";
			this.mnuCusSale.Click += new EventHandler(this.mnuCusSale_Click);
			componentResourceManager.ApplyResources(this.mnuFindProvider, "mnuFindProvider");
			this.mnuFindProvider.Name = "mnuFindProvider";
			this.mnuFindProvider.Click += new EventHandler(this.mnuFindProvider_Click);
			componentResourceManager.ApplyResources(this.mnuSearchDoctor, "mnuSearchDoctor");
			this.mnuSearchDoctor.Name = "mnuSearchDoctor";
			this.mnuSearchDoctor.Click += new EventHandler(this.mnuSearchDoctor_Click);
			this.mnuReport.DropDownItems.AddRange(new ToolStripItem[]
			{
				this.mnuRepInput,
				this.mnuRepOutput,
				this.mnuRepOutputDetailt,
				this.mnuLogRetail,
				this.mnuRepRetail,
				this.mnuRepOutInBalancer,
				this.toolStripSeparator5,
				this.mnuPrescriptions,
				this.mnuPrescriptionsDetail,
				this.mnuListBillOutput,
				this.mnuTicketBillInput,
				this.mnuTicketBillOutput,
				this.toolStripSeparator19,
				this.mnuQuocte,
				this.mnuPricePublic,
				this.mnuInventory,
				this.mnuSurplus,
				this.toolStripSeparator20,
				this.mnuRepGroupProduct,
				this.mnurepProducts,
				this.mnuRepCustomer,
				this.mnuRepProductProvider
			});
			this.mnuReport.Name = "mnuReport";
			componentResourceManager.ApplyResources(this.mnuReport, "mnuReport");
			componentResourceManager.ApplyResources(this.mnuRepInput, "mnuRepInput");
			this.mnuRepInput.Name = "mnuRepInput";
			this.mnuRepInput.Click += new EventHandler(this.mnuRepInput_Click);
			componentResourceManager.ApplyResources(this.mnuRepOutput, "mnuRepOutput");
			this.mnuRepOutput.Name = "mnuRepOutput";
			this.mnuRepOutput.Click += new EventHandler(this.mnuRepOutput_Click);
			componentResourceManager.ApplyResources(this.mnuRepOutputDetailt, "mnuRepOutputDetailt");
			this.mnuRepOutputDetailt.Name = "mnuRepOutputDetailt";
			this.mnuRepOutputDetailt.Click += new EventHandler(this.mnuRepOutputDetailt_Click);
			componentResourceManager.ApplyResources(this.mnuLogRetail, "mnuLogRetail");
			this.mnuLogRetail.Name = "mnuLogRetail";
			this.mnuLogRetail.Click += new EventHandler(this.mnuLogRetail_Click);
			componentResourceManager.ApplyResources(this.mnuRepRetail, "mnuRepRetail");
			this.mnuRepRetail.Name = "mnuRepRetail";
			this.mnuRepRetail.Click += new EventHandler(this.mnuRepRetail_Click);
			componentResourceManager.ApplyResources(this.mnuRepOutInBalancer, "mnuRepOutInBalancer");
			this.mnuRepOutInBalancer.Name = "mnuRepOutInBalancer";
			this.mnuRepOutInBalancer.Click += new EventHandler(this.mnuRepOutInBalancer_Click);
			this.toolStripSeparator5.Name = "toolStripSeparator5";
			componentResourceManager.ApplyResources(this.toolStripSeparator5, "toolStripSeparator5");
			componentResourceManager.ApplyResources(this.mnuPrescriptions, "mnuPrescriptions");
			this.mnuPrescriptions.Name = "mnuPrescriptions";
			this.mnuPrescriptions.Click += new EventHandler(this.mnuPrescriptions_Click);
			componentResourceManager.ApplyResources(this.mnuPrescriptionsDetail, "mnuPrescriptionsDetail");
			this.mnuPrescriptionsDetail.Name = "mnuPrescriptionsDetail";
			this.mnuPrescriptionsDetail.Click += new EventHandler(this.mnuPrescriptionsDetail_Click);
			componentResourceManager.ApplyResources(this.mnuListBillOutput, "mnuListBillOutput");
			this.mnuListBillOutput.Name = "mnuListBillOutput";
			this.mnuListBillOutput.Click += new EventHandler(this.mnuListBillOutput_Click);
			componentResourceManager.ApplyResources(this.mnuTicketBillInput, "mnuTicketBillInput");
			this.mnuTicketBillInput.Name = "mnuTicketBillInput";
			this.mnuTicketBillInput.Click += new EventHandler(this.mnuTicketBillInput_Click);
			this.mnuTicketBillOutput.Name = "mnuTicketBillOutput";
			componentResourceManager.ApplyResources(this.mnuTicketBillOutput, "mnuTicketBillOutput");
			this.mnuTicketBillOutput.Click += new EventHandler(this.mnuTicketBillOutput_Click);
			this.toolStripSeparator19.Name = "toolStripSeparator19";
			componentResourceManager.ApplyResources(this.toolStripSeparator19, "toolStripSeparator19");
			this.mnuQuocte.Name = "mnuQuocte";
			componentResourceManager.ApplyResources(this.mnuQuocte, "mnuQuocte");
			this.mnuQuocte.Click += new EventHandler(this.mnuQuocte_Click);
			componentResourceManager.ApplyResources(this.mnuPricePublic, "mnuPricePublic");
			this.mnuPricePublic.Name = "mnuPricePublic";
			this.mnuPricePublic.Click += new EventHandler(this.mnuPricePublic_Click);
			componentResourceManager.ApplyResources(this.mnuInventory, "mnuInventory");
			this.mnuInventory.Name = "mnuInventory";
			this.mnuInventory.Click += new EventHandler(this.mnuInventory_Click);
			componentResourceManager.ApplyResources(this.mnuSurplus, "mnuSurplus");
			this.mnuSurplus.Name = "mnuSurplus";
			this.mnuSurplus.Click += new EventHandler(this.mnuSurplus_Click);
			this.toolStripSeparator20.Name = "toolStripSeparator20";
			componentResourceManager.ApplyResources(this.toolStripSeparator20, "toolStripSeparator20");
			componentResourceManager.ApplyResources(this.mnuRepGroupProduct, "mnuRepGroupProduct");
			this.mnuRepGroupProduct.Name = "mnuRepGroupProduct";
			this.mnuRepGroupProduct.Click += new EventHandler(this.mnuRepGroupProduct_Click);
			componentResourceManager.ApplyResources(this.mnurepProducts, "mnurepProducts");
			this.mnurepProducts.Name = "mnurepProducts";
			this.mnurepProducts.Click += new EventHandler(this.mnurepProducts_Click);
			componentResourceManager.ApplyResources(this.mnuRepCustomer, "mnuRepCustomer");
			this.mnuRepCustomer.Name = "mnuRepCustomer";
			this.mnuRepCustomer.Click += new EventHandler(this.mnuRepProvider_Click);
			componentResourceManager.ApplyResources(this.mnuRepProductProvider, "mnuRepProductProvider");
			this.mnuRepProductProvider.Name = "mnuRepProductProvider";
			this.mnuRepProductProvider.Click += new EventHandler(this.mnuRepProductProvider_Click);
			this.SSmnuHelp.DropDownItems.AddRange(new ToolStripItem[]
			{
				this.mnuIntro,
				this.mnuUpdate,
				this.toolStripSeparator13,
				this.tlSHelpFast,
				this.mnuUserGuide,
				this.toolStripSeparator40,
				this.mnuRegis
			});
			this.SSmnuHelp.Name = "SSmnuHelp";
			componentResourceManager.ApplyResources(this.SSmnuHelp, "SSmnuHelp");
			componentResourceManager.ApplyResources(this.mnuIntro, "mnuIntro");
			this.mnuIntro.Name = "mnuIntro";
			this.mnuIntro.Click += new EventHandler(this.mnuIntro_Click);
			componentResourceManager.ApplyResources(this.mnuUpdate, "mnuUpdate");
			this.mnuUpdate.Name = "mnuUpdate";
			this.mnuUpdate.Click += new EventHandler(this.mnuUpdate_Click);
			this.toolStripSeparator13.Name = "toolStripSeparator13";
			componentResourceManager.ApplyResources(this.toolStripSeparator13, "toolStripSeparator13");
			componentResourceManager.ApplyResources(this.tlSHelpFast, "tlSHelpFast");
			this.tlSHelpFast.Name = "tlSHelpFast";
			this.tlSHelpFast.Click += new EventHandler(this.tlSHelpFast_Click);
			componentResourceManager.ApplyResources(this.mnuUserGuide, "mnuUserGuide");
			this.mnuUserGuide.Name = "mnuUserGuide";
			this.mnuUserGuide.Click += new EventHandler(this.mnuUserGuide_Click);
			this.toolStripSeparator40.Name = "toolStripSeparator40";
			componentResourceManager.ApplyResources(this.toolStripSeparator40, "toolStripSeparator40");
			componentResourceManager.ApplyResources(this.mnuRegis, "mnuRegis");
			this.mnuRegis.Name = "mnuRegis";
			this.mnuRegis.Click += new EventHandler(this.mnuRegis_Click);
			componentResourceManager.ApplyResources(this.statusStrip1, "statusStrip1");
			this.statusStrip1.Name = "statusStrip1";
			componentResourceManager.ApplyResources(this.lblBottom1, "lblBottom1");
			this.lblBottom1.BackColor = SystemColors.Control;
			this.lblBottom1.ForeColor = Color.Black;
			this.lblBottom1.Name = "lblBottom1";
			this.lblBottom1.DoubleClick += new EventHandler(this.lblBottom1_DoubleClick);
			componentResourceManager.ApplyResources(this.lblFullName, "lblFullName");
			this.lblFullName.BackColor = SystemColors.Control;
			this.lblFullName.ForeColor = Color.Black;
			this.lblFullName.Name = "lblFullName";
			this.toolTip1.IsBalloon = true;
			componentResourceManager.ApplyResources(this.lblBar, "lblBar");
			this.lblBar.Name = "lblBar";
			componentResourceManager.ApplyResources(this.lblRighButton, "lblRighButton");
			this.lblRighButton.Name = "lblRighButton";
			this.lblRighButton.DoubleClick += new EventHandler(this.lblRighButton_DoubleClick);
			componentResourceManager.ApplyResources(this.label1, "label1");
			this.label1.BackColor = SystemColors.Control;
			this.label1.ForeColor = Color.Sienna;
			this.label1.Name = "label1";
			this.label1.DoubleClick += new EventHandler(this.label1_DoubleClick);
//			base.AutoScaleMode = AutoScaleMode.None;
			componentResourceManager.ApplyResources(this, "$this");
			base.Controls.Add(this.label1);
			base.Controls.Add(this.lblFullName);
			base.Controls.Add(this.lblBottom1);
			base.Controls.Add(this.statusStrip1);
			base.Controls.Add(this.splitContainer1);
			base.Controls.Add(this.SSmainMenu);
			base.Controls.Add(this.lblBar);
			base.Controls.Add(this.lblRighButton);
			this.Cursor = Cursors.Hand;
			this.DoubleBuffered = true;
			base.KeyPreview = true;
			base.MainMenuStrip = this.SSmainMenu;
			base.Name = "FrmMain";
			base.WindowState = FormWindowState.Maximized;
			base.Load += new EventHandler(this.FrmSSMain_Load);
			base.Shown += new EventHandler(this.FrmMain_Shown);
			base.FormClosed += new FormClosedEventHandler(this.FrmMain_FormClosed);
			base.FormClosing += new FormClosingEventHandler(this.FrmMain_FormClosing);
			base.KeyDown += new KeyEventHandler(this.FrmMain_KeyDown);
			this.splitContainer1.Panel1.ResumeLayout(false);
			this.splitContainer1.ResumeLayout(false);
			this.toolStrip1.ResumeLayout(false);
			this.toolStrip1.PerformLayout();
			this.SSmainMenu.ResumeLayout(false);
			this.SSmainMenu.PerformLayout();
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
